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

Race condition allows shard to be chunk donor and recipient at the same time

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc0
    • Affects Version/s: 3.3.15
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      Occasionally hit by the bulk_shard_insert.js test.

      Show
      Occasionally hit by the bulk_shard_insert.js test.
    • Sharding 2016-10-10
    • 0

      The check for whether a shard is already participating in a migration as either donor or recipient is racy and may allow both to happen at the same time for the same collection.

      This should never be allowed to happen because it may lead to a state of the cached shard metadata which is consistent as far as the shard version is concerned, but is missing the received chunk.

            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: