Retry disable and enable of balancer in awaitCollectionBalance

XMLWordPrintableJSON

    • Sharding EMEA
    • Fully Compatible
    • ALL
    • Sharding EMEA 2023-03-06
    • 35
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      As part of the shell helper function awaitCollectionBalance, the balancer is turned off to wait for orphan cleanup and then the balancer is reenabled. Turning on and off the balancer is done via writes to config.collections, which are not retriable since they are in the config collection.

      We should retry these commands (1, 2) in case of notPrimary errors so that this helper can still be used in config stepdown suites.

            Assignee:
            Antonio Fuschetto
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: