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

Investigate retryability of the createIndexes command in mongos

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Execution Team 2021-11-29

      In sharded configurations, indexes are copied during chunk migrations. If there are no migrations, then there's no automatic mechanism to make indexes consistent across shards.

      There's a background thread that we can use to detect missing indexes. If there are, we'd need to re-run the same createIndex command.

      This ticket should investigate whether mongos needs to internally retry the createIndexes on NotPrimary-esque errors or whether that should be left to the replicator.

            Assignee:
            gabriel.marks@mongodb.com Gabriel Marks
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: