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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.3
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2017-01-02, Sharding 2017-02-13

      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

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: