election: test join to an election-enabled cluster
There was a bug that a new replica at join to a election-enabled cluster sometimes tried to register on a non-leader node which couldn't write to _cluster, so the join failed with ER_READONLY error. Now in scope of #5613 the algorithm of join-master selection is changed. A new node looks for writable members of the cluster to use a join-master. It will not choose a follower if there is a leader. Closes #6127
Showing
- changelogs/unreleased/gh-6127-election-join-new.md 4 additions, 0 deletionschangelogs/unreleased/gh-6127-election-join-new.md
- test/replication/gh-6127-election-join-new.result 105 additions, 0 deletionstest/replication/gh-6127-election-join-new.result
- test/replication/gh-6127-election-join-new.test.lua 41 additions, 0 deletionstest/replication/gh-6127-election-join-new.test.lua
- test/replication/gh-6127-master1.lua 15 additions, 0 deletionstest/replication/gh-6127-master1.lua
- test/replication/gh-6127-master2.lua 13 additions, 0 deletionstest/replication/gh-6127-master2.lua
- test/replication/gh-6127-replica.lua 9 additions, 0 deletionstest/replication/gh-6127-replica.lua
- test/replication/suite.cfg 1 addition, 0 deletionstest/replication/suite.cfg
Loading
Please register or sign in to comment