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

XMLWordPrintableJSON

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

      ... 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:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: