Commit Graph

14 Commits (af410302703848045501416654d6f19e2888c065)

Author SHA1 Message Date
Ben Johnson 57c14987a6 Raft package fixes.
This commit includes various fixes to improve the stability of the raft package tests and benchmarks.
2015-02-06 12:46:50 -07:00
Ben Johnson 6c14371df4 Refactor raft package.
This commit refactors the raft package to more loosely couple the individual parts. The clock is now broken into
an interface that signals individual actions in the log. The transport has been mocked to allow more control over
the log tests. The handler's log has been mocked to separate its testing from the log itself.
2015-02-04 18:59:06 -07:00
Cory LaNou 4ecd5a0596 skipping racy raft tests 2015-01-30 13:50:59 -07:00
Cory LaNou 24bc6eaa6e skipping racy raft tests 2015-01-30 13:44:29 -07:00
Cory LaNou 347c34b4f1 skipping racy raft test 2015-01-30 13:44:29 -07:00
Philip O'Toole 59c5366a2b Skip TestHTTPHandler_HandleHeartbeat until fixed
Fails on travis:

UN TestHTTPHandler_HandleHeartbeat
[raft] 2015/01/30 06:52:42 log open: created at /tmp/raft-667391350, with ID 0, term 0, last applied index of 0
[raft] 2015/01/30 06:52:42 log state change: stopped => leader
[raft] 2015/01/30 06:52:42 log initialize: promoted to 'leader' with cluster ID 1, log ID 1, term 1
panic: runtime error: slice bounds out of range
goroutine 32 [running]:
github.com/influxdb/influxdb/raft.func·007(0x0, 0x0)
    /home/travis/gopath/src/github.com/influxdb/influxdb/raft/log.go:953 +0x5d5
2015-01-29 22:55:11 -08:00
Ben Johnson 50a0826026 Add broker snapshot/restore and CLI join. 2015-01-06 17:21:32 -07:00
Ben Johnson 3a1b8b1a22 Replace simulation test coverage. 2014-09-27 16:24:59 -06:00
Ben Johnson 7f023ecfc2 Remove simulation testing. 2014-09-26 14:57:33 -06:00
Ben Johnson 425bd0aa2e Fix race conditions, tests. 2014-09-22 19:43:15 -06:00
Ben Johnson 04a7ea32ae Refactor in-memory entries, add snapshotting. 2014-09-19 18:32:53 -06:00
Ben Johnson 14135c4fe2 Configuration management. 2014-09-10 18:28:12 -06:00
Ben Johnson aa514f6849 Add HTTP handler, begin multi-node testing. 2014-09-09 17:01:48 -06:00
Ben Johnson b4acaafca0 Basic structure, encoder, decoder. 2014-09-03 16:07:39 -06:00