Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13535 from wallyworld/fix-ha-removenode
#13535 Each controller runs its own peer grouper worker. For mongo 4.0, we could construct the desired replicaset and each worker would splat the same copy onto mongo. Multiple workers doing this wasn't an issue. For mongo 4.4, we need to apply the changes one at a time, and this is done by calculating a diff. This becomes an issue if multiple workers try and do that at the same time. This PR ensures that only the peer grouper running on the primary changes the replicaset. Small test changes were needed to accommodate this, since we need to change which machine the worker thinks is the primary. ## QA steps ./main.sh controller Also ``` juju bootstrap juju enable-ha ``` juju show-controller check rs.config() remove a secondary `juju remove-machine 1` check rs.config() `juju enable-ha` juju show-controller check rs.config() remove the primary `juju remove-machine 0` juju show-controller check rs.config() `juju enable-ha` juju show-controller check rs.config()
- Loading branch information
Showing
8 changed files
with
172 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.