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

Balancer round aborted with idle sharded collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.5.0
    • 2.4.5, 2.5.1
    • Sharding
    • None
    • ALL

    Description

      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.

      Attachments

        Activity

          People

            greg_10gen Greg Studer
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: