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

Reduce ScopedSetShardRole scope to setup stage of index build

    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0
    • Execution EMEA Team 2023-07-24, Execution EMEA Team 2023-08-07
    • 150

      Currently ScopedSetShardRole which sets the shard version is scoped to affect the whole index build thread. This should not be necessary, and has caused issues in the past (SERVER-69530).

      The shard version protocol is only required when setting up the index build and writing the 'startIndexBuild' oplog entry. If a chunk migration is in-progress while an index build is started, it will be aborted. A recipient shard will copy in-progress indexes from the donor shard, and if the index build is aborted on the donor, the client running createIndexes will receive an error requiring them to retry the command, and the indexes will become consistent.

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: