Balancer round aborted with idle sharded collection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.4.5, 2.5.1
    • Affects Version/s: 2.5.0
    • Component/s: Sharding
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In order to guarantee fair balancing, the balancer tries to move one-chunk-per-collection-per-round. However, if when the balancer tries to load information on a newly-sharded collection it doesn't know about, an exception is thrown that aborts the round (Balancer::_moveChunks() calls getChunkManager(), which throws).

      Solution is to use getChunkManagerIfExists(), which does not throw, and pass in reload=true to make the Balancer load the ChunkManager even if the collection is idle.

              Assignee:
              Greg Studer (Inactive)
              Reporter:
              Greg Studer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: