[SERVER-67733] ShardingTest::awaitBalancerRound() doesn't work in case of CSRS stepdowns Created: 01/Jul/22 Updated: 29/Oct/23 Resolved: 15/Jul/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.3, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tommaso Tocci | Assignee: | Tommaso Tocci |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v6.0
|
||||||||||||||||||||
| Sprint: | Sharding EMEA 2022-07-11, Sharding EMEA 2022-07-25 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 152 | ||||||||||||||||||||
| Description |
|
awaitBalancerRound works by polling on `balancerStatus` command and see when the number of rounds increase by one. If a new primary of the configsvr is elected this approach is wrong, in fact each replicaset node of the CSRS is keeping its count of balancer rounds, so this means that there is no guarantee that the number of rounds returned by `balancerStatus` is an always increasing number. |
| Comments |
| Comment by Githook User [ 14/Oct/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |
| Comment by Githook User [ 15/Jul/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |
| Comment by Githook User [ 12/Jul/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: Revert " This reverts commit 0c74d8baaef7d7c6d0e84401c1066b658f8c7bb2. |
| Comment by Githook User [ 11/Jul/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |