ShardingTest::awaitBalancerRound() doesn't work in case of CSRS stepdowns

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.3, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Sharding EMEA 2022-07-11, Sharding EMEA 2022-07-25
    • 152
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Tommaso Tocci
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: