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

Race in moveChunk and createIndex can cause a shard to have missing indexes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Sharding
    • ALL

    Description

      ... until next migration.

      1. moveChunk gets called, destination shard calls listIndexes.
      2. createIndex with text index was sent to recipient shard.
      3. destination shard got the list of indexes, but doesn't include the in progress text index.
      4. text index finished in recipient.
      5. moveChunk completes
      6. text query get targeted to the destination shard - error: text index required

      Attachments

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: