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

Remove MigrationManager::CollectionMigrationsState::distLockHandle variable or remove MigrationManager's constant value distlock lockSessionID

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.3
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2017-01-02, Sharding 2017-02-13

      Description

      Since the MigrationManager is using a constant value as a lock session id, which is what DistLockHandle is, there is no longer a need for MigrationManager::CollectionMigrationsState to store this value. DistLockHandle will always be equal to MigrationManager::_lockSessionID for every balancer instance.

      Remove the MigrationManager::CollectionMigrationsState struct's distLockHandle variable, and clean up the MigrationManager code a bit because it no longer needs to handle it.

      OR: ------------

      Get rid of the constant lockSessionID value per balancer instance. This commit is then revertible. This would probably involve creating the MigrationManager::CollectionMigrationState objects in MigrationManager::startRecoveryAndAcquireDistLocks

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dianna.hohensee Dianna Hohensee
              Reporter:
              dianna.hohensee Dianna Hohensee
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: