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

Mark MigrationDestinationManager::_migrateThread killable for stepdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Sharding
    • None
    • Sharding
    • ALL

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-sharding Backlog - Sharding Team
              lingzhi.deng@mongodb.com Lingzhi Deng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: