Skip to content

Instantly share code, notes, and snippets.

@yichengq
Created July 10, 2014 15:23
Show Gist options
  • Save yichengq/4a6d0be42a5311043540 to your computer and use it in GitHub Desktop.
Save yichengq/4a6d0be42a5311043540 to your computer and use it in GitHub Desktop.
network disorder
send from 1 to 2 in msgVote with index 5 with log term 1 with len entries 0 with commit 0
send from 2 to 1 in msgVoteResp with index 5 with log term 0 with len entries 0 with commit 0
send from 1 to 2 in msgApp with index 5 with log term 1 with len entries 1 with commit 5
send from 2 to 1 in msgAppResp with index 6 with log term 0 with len entries 0 with commit 0
send from 1 to 2 in msgApp with index 6 with log term 39 with len entries 0 with commit 6
send from 1 to 2 in msgApp with index 6 with log term 39 with len entries 1 with commit 6
send from 2 to 1 in msgAppResp with index 7 with log term 0 with len entries 0 with commit 0
0 : 0 5
1 : 1 6
2 : 1 6
wait 1 1 5
send from 2 to 1 in msgAppResp with index 6 with log term 0 with len entries 0 with commit 0
2014/07/10 07:39:11 Remove Node 1
send from 1 to 2 in msgApp with index 7 with log term 39 with len entries 0 with commit 7
2014/07/10 07:39:11 Node: 1 removed
0 : 0 5
1 : 1 7
2 : 1 6
wait 1 2 5
send from 2 to 1 in msgAppResp with index -1 with log term 0 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
send from 2 to 1 in msgVote with index 6 with log term 39 with len entries 0 with commit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment