Adam Wolfe Gordon
eb7fef559d
contrib/raftexample: Handle conf change entries
...
So far we don't propose conf changes, but we'll be ready to handle them
when we do.
2016-02-08 10:51:03 -07:00
Adam Wolfe Gordon
a31f9a8af1
contrib/raftexample: Publish only committed entries
...
We shouldn't publish entries to the kvstore until they've been
committed.
2016-02-05 13:59:49 -07:00
chz
63bc804253
contrib/raftexample: shutdown rafthttp on closed proposal channel
...
Otherwise listening ports leak across unit tests and ports won't bind.
2015-12-21 13:03:42 -08:00
chz
b73a11ff45
contrib/raftexample: follow pipeline guidelines closer
...
close raft commit channel before issuing raft error since it's done
sending
2015-12-21 13:03:42 -08:00
chz
b7cf2385e6
contrib/raftexample: add test, fix dead lock on proposal channel
...
deadlock if no leader; node selects on propc=nil and writes to Ready,
client blocks on propC in same select as Ready reader, and so progress
of raft state machine deadlocks.
2015-12-21 13:03:35 -08:00
Anthony Romano
1f858e10c8
contrib: example key-value store using raft
2015-12-17 14:41:37 -08:00