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

Make balancer use explicit shard distribution when moving unsharded collections

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0
    • Cluster Scalability 2024-07-22
    • 0

      When the fail point balancerShouldReturnRandomMigrations is enabled (only possible with test commands enabled), the balancer will use _shardsvrReshardCollection to move unsharded collections randomly throughout the cluster. SERVER-91090 avoids moveCollection and unshardCollection transiently failing for small capped collections by setting an explicit shard distribution in their resharding commands. We can make the same change to the balancer's resharding command (or possibly make it use moveCollection to avoid duplication) to prevent the same errors, which can trigger a tassert.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: