[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:
Backports
Depends
Problem/Incident
Related
is related to SERVER-59891 Replace the coverage from sharding_co... Backlog
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: SERVER-67733 ShardingTest::awaitBalancerRound() doesn't work in case of CSRS stepdowns
Branch: v6.0
https://github.com/mongodb/mongo/commit/3ad9ad11bad64dfa3c588cf79eebfedc3d79182f

Comment by Githook User [ 15/Jul/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-67733 ShardingTest::awaitBalancerRound() doesn't work in case of CSRS stepdowns
Branch: master
https://github.com/mongodb/mongo/commit/ed7703c26e871510a488d8e725dc4bf101cde5a2

Comment by Githook User [ 12/Jul/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: Revert "SERVER-67733 ShardingTest::awaitBalancerRound() doesn't work in case of CSRS stepdowns"

This reverts commit 0c74d8baaef7d7c6d0e84401c1066b658f8c7bb2.
Branch: master
https://github.com/mongodb/mongo/commit/69a25807e5fb0b8a1bf3792bb5150e1baf0f0c37

Comment by Githook User [ 11/Jul/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-67733 ShardingTest::awaitBalancerRound() doesn't work in case of CSRS stepdowns
Branch: master
https://github.com/mongodb/mongo/commit/0c74d8baaef7d7c6d0e84401c1066b658f8c7bb2

Generated at Thu Feb 08 06:08:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.