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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.4.0-rc0
    • 3.3.15
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: