Mark MigrationDestinationManager::_migrateThread killable for stepdown

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

      MigrationDestinationManager::_migrateThread() is not marked killable. We should probably do something like what we did for the range deleter to call setSystemOperationKillable() on the client thread. Otherwise, the migrateThread could be blocked on a prepared transaction for a collection lock (held by a prepared transaction) while holding onto the RSTL, preventing state transition from proceeding. Calling setSystemOperationKillable() will allow stepDown to kill the migrateThread operation.

              Assignee:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Lingzhi Deng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: