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

Balancer should skip namespaces which get dropped while it is running

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.11
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2016-08-29, Sharding 2016-09-19

      Currently, the sharding balancer first selects chunks which should be moved around and then passes them to the _moveChunks routine to do the actual move. This routine does not expect any of these chunks' databases to disappear during the round, but there is nothing to prevent this (and there is no need to).

      We should make the balancer _moveChunks routine skip databases and collections, which do not exist and there should be a secondary check, which checks the collection's epoch to ensure that if a collection is dropped and recreated, we will discard any further moves for that collection from this round.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: