election: promote 'manual' bootstrap master
A cluster may consist of only voters and manual nodes. This means on bootstrap nobody would be elected as a Raft leader automatically to create the first snapshot and register the others. After the previous commit the manual nodes were preferred to be bootstrap masters, but they couldn't do anything. This patch makes 'manual' bootstrap master promote itself for one term so as it could boot the cluster. Closes #6018
Showing
- changelogs/unreleased/gh-6018-election-boot-voter.md 4 additions, 0 deletionschangelogs/unreleased/gh-6018-election-boot-voter.md
- src/box/box.cc 17 additions, 2 deletionssrc/box/box.cc
- test/replication/gh-6018-election-boot-voter.result 46 additions, 0 deletionstest/replication/gh-6018-election-boot-voter.result
- test/replication/gh-6018-election-boot-voter.test.lua 21 additions, 0 deletionstest/replication/gh-6018-election-boot-voter.test.lua
Loading
Please register or sign in to comment