Commit Graph

11 Commits (c95af24e43702801419115a6c612beab6bbfd835)

Author SHA1 Message Date
Ben Johnson 27e9132796 Integrate stateless broker into remaining packages. 2015-03-10 14:53:45 -06:00
Ben Johnson f6ceb9bd32 Refactor raft state handling.
This commit changes the state handling of the raft log. The actions
for related to each raft state are strictly confined within that state's
loop. To transition between states, the raft log now much clean up all
its actions before moving on.

This fixes issues where goroutines were kicked off for one state but
were delayed in their scheduling so they would begin after the log
had already changed to another state.
2015-02-16 15:45:37 -07:00
Ben Johnson d75bf86722 Fix transport test comment. 2015-02-06 17:50:48 -07:00
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
Philip O'Toole 295d63cb57 More vet fixes 2015-01-11 15:14:22 -08:00
Ben Johnson 6941dc0c61 Fix tests for /raft prefix. 2014-12-30 11:57:57 -07:00
Ben Johnson a175bcce34 Simulation testing changes. 2014-09-26 14:50:41 -06:00
Ben Johnson 425bd0aa2e Fix race conditions, tests. 2014-09-22 19:43:15 -06:00
Ben Johnson 97f24d08a1 Add HTTP transport. 2014-09-08 17:03:27 -06:00
Ben Johnson b4acaafca0 Basic structure, encoder, decoder. 2014-09-03 16:07:39 -06:00