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

remove unnecessary check that RangeDeleter has run after removeShard in remove2.js

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc1
    • Affects Version/s: 3.3.14
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2016-10-10

      The test removes a shard and tries to put it back again. However, it is possible that the migration cleanup task has not yet completed so attempting to re-add the shard will result to "local database exist in another shard" error.

      The test attempts to prevent this by checking the currOp for the cleanup task:
      https://github.com/mongodb/mongo/blob/r3.3.14/jstests/sharding/remove2.js#L26-L30

      But the issue here is that the balancer can run with

      { _waitForDelete: true }

      and this will mean that the cleanup will happen inline with moveChunk and the check above will not catch this.

            Assignee:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: