joint_vote.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. # Empty joint config wins all votes. This isn't used in production. Note that
  2. # by specifying cfgj explicitly we tell the test harness to treat the input as
  3. # a joint quorum and not a majority quorum.
  4. vote cfgj=zero
  5. ----
  6. VoteWon
  7. # More examples with close to trivial configs.
  8. vote cfg=(1) cfgj=zero votes=(_)
  9. ----
  10. VotePending
  11. vote cfg=(1) cfgj=zero votes=(y)
  12. ----
  13. VoteWon
  14. vote cfg=(1) cfgj=zero votes=(n)
  15. ----
  16. VoteLost
  17. vote cfg=(1) cfgj=(1) votes=(_)
  18. ----
  19. VotePending
  20. vote cfg=(1) cfgj=(1) votes=(y)
  21. ----
  22. VoteWon
  23. vote cfg=(1) cfgj=(1) votes=(n)
  24. ----
  25. VoteLost
  26. vote cfg=(1) cfgj=(2) votes=(_,_)
  27. ----
  28. VotePending
  29. vote cfg=(1) cfgj=(2) votes=(y,_)
  30. ----
  31. VotePending
  32. vote cfg=(1) cfgj=(2) votes=(y,y)
  33. ----
  34. VoteWon
  35. vote cfg=(1) cfgj=(2) votes=(y,n)
  36. ----
  37. VoteLost
  38. vote cfg=(1) cfgj=(2) votes=(n,_)
  39. ----
  40. VoteLost
  41. vote cfg=(1) cfgj=(2) votes=(n,n)
  42. ----
  43. VoteLost
  44. vote cfg=(1) cfgj=(2) votes=(n,y)
  45. ----
  46. VoteLost
  47. # Two node configs.
  48. vote cfg=(1,2) cfgj=(3,4) votes=(_,_,_,_)
  49. ----
  50. VotePending
  51. vote cfg=(1,2) cfgj=(3,4) votes=(y,_,_,_)
  52. ----
  53. VotePending
  54. vote cfg=(1,2) cfgj=(3,4) votes=(y,y,_,_)
  55. ----
  56. VotePending
  57. vote cfg=(1,2) cfgj=(3,4) votes=(y,y,n,_)
  58. ----
  59. VoteLost
  60. vote cfg=(1,2) cfgj=(3,4) votes=(y,y,n,n)
  61. ----
  62. VoteLost
  63. vote cfg=(1,2) cfgj=(3,4) votes=(y,y,y,n)
  64. ----
  65. VoteLost
  66. vote cfg=(1,2) cfgj=(3,4) votes=(y,y,y,y)
  67. ----
  68. VoteWon
  69. vote cfg=(1,2) cfgj=(2,3) votes=(_,_,_)
  70. ----
  71. VotePending
  72. vote cfg=(1,2) cfgj=(2,3) votes=(_,n,_)
  73. ----
  74. VoteLost
  75. vote cfg=(1,2) cfgj=(2,3) votes=(y,y,_)
  76. ----
  77. VotePending
  78. vote cfg=(1,2) cfgj=(2,3) votes=(y,y,n)
  79. ----
  80. VoteLost
  81. vote cfg=(1,2) cfgj=(2,3) votes=(y,y,y)
  82. ----
  83. VoteWon
  84. vote cfg=(1,2) cfgj=(1,2) votes=(_,_)
  85. ----
  86. VotePending
  87. vote cfg=(1,2) cfgj=(1,2) votes=(y,_)
  88. ----
  89. VotePending
  90. vote cfg=(1,2) cfgj=(1,2) votes=(y,n)
  91. ----
  92. VoteLost
  93. vote cfg=(1,2) cfgj=(1,2) votes=(n,_)
  94. ----
  95. VoteLost
  96. vote cfg=(1,2) cfgj=(1,2) votes=(n,n)
  97. ----
  98. VoteLost
  99. # Simple example for overlapping three node configs.
  100. vote cfg=(1,2,3) cfgj=(2,3,4) votes=(_,_,_,_)
  101. ----
  102. VotePending
  103. vote cfg=(1,2,3) cfgj=(2,3,4) votes=(_,n,_,_)
  104. ----
  105. VotePending
  106. vote cfg=(1,2,3) cfgj=(2,3,4) votes=(_,n,n,_)
  107. ----
  108. VoteLost
  109. vote cfg=(1,2,3) cfgj=(2,3,4) votes=(_,y,y,_)
  110. ----
  111. VoteWon
  112. vote cfg=(1,2,3) cfgj=(2,3,4) votes=(y,y,_,_)
  113. ----
  114. VotePending
  115. vote cfg=(1,2,3) cfgj=(2,3,4) votes=(y,y,n,_)
  116. ----
  117. VotePending
  118. vote cfg=(1,2,3) cfgj=(2,3,4) votes=(y,y,n,n)
  119. ----
  120. VoteLost
  121. vote cfg=(1,2,3) cfgj=(2,3,4) votes=(y,y,n,y)
  122. ----
  123. VoteWon