Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-72820

Retry disable and enable of balancer in awaitCollectionBalance

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

      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@mongodb.com Antonio Fuschetto
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: