Commit Graph

31 Commits (272f855d815189eb4fd326569372d165da9d7cb4)

Author SHA1 Message Date
Ben Johnson 27f4a3efec Fix raft transition and reader edge cases. 2015-03-29 15:04:11 -06:00
Ben Johnson 3d03602fa7 Raft documentation, read from index fix. 2015-03-29 09:08:44 -06:00
Ben Johnson 057309fc8e Simplify raft snapshotting, entry apply. 2015-03-26 20:32:39 -06:00
Ben Johnson 27e9132796 Integrate stateless broker into remaining packages. 2015-03-10 14:53:45 -06:00
Ben Johnson 9ff2969d38 Add set up code for raft internal tests. 2015-02-20 13:52:12 -07:00
Ben Johnson 02764a8a12 Fix raft last log index. 2015-02-20 11:02:30 -07:00
Ben Johnson be22933c49 Additional raft fixes. 2015-02-18 15:37:42 -07: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 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 a6ac75c613 disable more racy tests 2015-01-30 13:45:07 -07:00
Cory LaNou 24bc6eaa6e skipping racy raft tests 2015-01-30 13:44:29 -07:00
Cory LaNou 98354e2877 raft test still failing, seeing if time tests fail on build, pass locally 2015-01-30 13:44:29 -07:00
Philip O'Toole 7df23eb7e6 Disable racy Raft test until fixed 2015-01-30 10:19:05 -08:00
Philip O'Toole 8cd7251aa8 Increase time "added" for single node test
Wait()ing for the log to be applied can take 2 loops. Due to this, the
timer used to trigger the 3rd check is pushed too far into the future.
So push the clock even farther into the future so the test doesn't hang
and can then be re-enabled.
2015-01-29 22:08:40 -08:00
Cory LaNou 494bac7f9e re-enable full suite testing, skip intermittently failing tests 2015-01-26 09:56:04 -07:00
Ben Johnson 50a0826026 Add broker snapshot/restore and CLI join. 2015-01-06 17:21:32 -07:00
Philip O'Toole 8049c34c7d Revert "Merge pull request #1174 from otoolep/increase_add_time"
This reverts commit 555346627e, reversing
changes made to af86d7cb1c.
2014-11-26 07:56:19 -08:00
Philip O'Toole 68d30ae722 Increase time "added" for single node test
Wait()ing for the log the be applied can take 2 loops. Due to this the
timer used to trigger the 3rd check is pushed too far into the future.
So push the clock even farther into the future.

As a result, all Travis testing can be re-enabled.
2014-11-25 22:52:58 -08:00
Ben Johnson 4ac988b483 Improve test coverage, elections. 2014-09-28 11:38:08 -06:00
Ben Johnson a90622bf04 Refactor election code. 2014-09-27 17:28:03 -06: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 3a7ef7684f Refactor simulation testing framework. 2014-09-24 17:15:21 -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 cbc84636de Basic multi-node simulation testing. 2014-09-13 18:12:32 -06:00
Ben Johnson aa514f6849 Add HTTP handler, begin multi-node testing. 2014-09-09 17:01:48 -06:00
Ben Johnson 7d4c3e9c6f Add single node simulation. 2014-09-08 15:39:05 -06:00
Ben Johnson 44a5f90acf Rough log segment read/write. 2014-09-06 21:10:06 -06:00
Ben Johnson b4acaafca0 Basic structure, encoder, decoder. 2014-09-03 16:07:39 -06:00