campaign.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. log-level info
  2. ----
  3. ok
  4. add-nodes 3 voters=(1,2,3) index=2
  5. ----
  6. INFO 1 switched to configuration voters=(1 2 3)
  7. INFO 1 became follower at term 0
  8. INFO newRaft 1 [peers: [1,2,3], term: 0, commit: 2, applied: 2, lastindex: 2, lastterm: 1]
  9. INFO 2 switched to configuration voters=(1 2 3)
  10. INFO 2 became follower at term 0
  11. INFO newRaft 2 [peers: [1,2,3], term: 0, commit: 2, applied: 2, lastindex: 2, lastterm: 1]
  12. INFO 3 switched to configuration voters=(1 2 3)
  13. INFO 3 became follower at term 0
  14. INFO newRaft 3 [peers: [1,2,3], term: 0, commit: 2, applied: 2, lastindex: 2, lastterm: 1]
  15. campaign 1
  16. ----
  17. INFO 1 is starting a new election at term 0
  18. INFO 1 became candidate at term 1
  19. INFO 1 received MsgVoteResp from 1 at term 1
  20. INFO 1 [logterm: 1, index: 2] sent MsgVote request to 2 at term 1
  21. INFO 1 [logterm: 1, index: 2] sent MsgVote request to 3 at term 1
  22. stabilize
  23. ----
  24. > 1 handling Ready
  25. Ready MustSync=true:
  26. Lead:0 State:StateCandidate
  27. HardState Term:1 Vote:1 Commit:2
  28. Messages:
  29. 1->2 MsgVote Term:1 Log:1/2
  30. 1->3 MsgVote Term:1 Log:1/2
  31. > 2 receiving messages
  32. 1->2 MsgVote Term:1 Log:1/2
  33. INFO 2 [term: 0] received a MsgVote message with higher term from 1 [term: 1]
  34. INFO 2 became follower at term 1
  35. INFO 2 [logterm: 1, index: 2, vote: 0] cast MsgVote for 1 [logterm: 1, index: 2] at term 1
  36. > 3 receiving messages
  37. 1->3 MsgVote Term:1 Log:1/2
  38. INFO 3 [term: 0] received a MsgVote message with higher term from 1 [term: 1]
  39. INFO 3 became follower at term 1
  40. INFO 3 [logterm: 1, index: 2, vote: 0] cast MsgVote for 1 [logterm: 1, index: 2] at term 1
  41. > 2 handling Ready
  42. Ready MustSync=true:
  43. HardState Term:1 Vote:1 Commit:2
  44. Messages:
  45. 2->1 MsgVoteResp Term:1 Log:0/0
  46. > 3 handling Ready
  47. Ready MustSync=true:
  48. HardState Term:1 Vote:1 Commit:2
  49. Messages:
  50. 3->1 MsgVoteResp Term:1 Log:0/0
  51. > 1 receiving messages
  52. 2->1 MsgVoteResp Term:1 Log:0/0
  53. INFO 1 received MsgVoteResp from 2 at term 1
  54. INFO 1 has received 2 MsgVoteResp votes and 0 vote rejections
  55. INFO 1 became leader at term 1
  56. 3->1 MsgVoteResp Term:1 Log:0/0
  57. > 1 handling Ready
  58. Ready MustSync=true:
  59. Lead:1 State:StateLeader
  60. Entries:
  61. 1/3 EntryNormal ""
  62. Messages:
  63. 1->2 MsgApp Term:1 Log:1/2 Commit:2 Entries:[1/3 EntryNormal ""]
  64. 1->3 MsgApp Term:1 Log:1/2 Commit:2 Entries:[1/3 EntryNormal ""]
  65. > 2 receiving messages
  66. 1->2 MsgApp Term:1 Log:1/2 Commit:2 Entries:[1/3 EntryNormal ""]
  67. > 3 receiving messages
  68. 1->3 MsgApp Term:1 Log:1/2 Commit:2 Entries:[1/3 EntryNormal ""]
  69. > 2 handling Ready
  70. Ready MustSync=true:
  71. Lead:1 State:StateFollower
  72. Entries:
  73. 1/3 EntryNormal ""
  74. Messages:
  75. 2->1 MsgAppResp Term:1 Log:0/3
  76. > 3 handling Ready
  77. Ready MustSync=true:
  78. Lead:1 State:StateFollower
  79. Entries:
  80. 1/3 EntryNormal ""
  81. Messages:
  82. 3->1 MsgAppResp Term:1 Log:0/3
  83. > 1 receiving messages
  84. 2->1 MsgAppResp Term:1 Log:0/3
  85. 3->1 MsgAppResp Term:1 Log:0/3
  86. > 1 handling Ready
  87. Ready MustSync=false:
  88. HardState Term:1 Vote:1 Commit:3
  89. CommittedEntries:
  90. 1/3 EntryNormal ""
  91. Messages:
  92. 1->2 MsgApp Term:1 Log:1/3 Commit:3
  93. 1->3 MsgApp Term:1 Log:1/3 Commit:3
  94. > 2 receiving messages
  95. 1->2 MsgApp Term:1 Log:1/3 Commit:3
  96. > 3 receiving messages
  97. 1->3 MsgApp Term:1 Log:1/3 Commit:3
  98. > 2 handling Ready
  99. Ready MustSync=false:
  100. HardState Term:1 Vote:1 Commit:3
  101. CommittedEntries:
  102. 1/3 EntryNormal ""
  103. Messages:
  104. 2->1 MsgAppResp Term:1 Log:0/3
  105. > 3 handling Ready
  106. Ready MustSync=false:
  107. HardState Term:1 Vote:1 Commit:3
  108. CommittedEntries:
  109. 1/3 EntryNormal ""
  110. Messages:
  111. 3->1 MsgAppResp Term:1 Log:0/3
  112. > 1 receiving messages
  113. 2->1 MsgAppResp Term:1 Log:0/3
  114. 3->1 MsgAppResp Term:1 Log:0/3