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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Sharding
    • ALL

      ... 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

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

              Created:
              Updated:
              Resolved: