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

ActiveMigrationsRegistry::lock method doesn't properly handle its exceptions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0, 5.1.2, 5.0.6, 4.4.11
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v5.1, v5.0, v4.4
    • Sharding EMEA 2021-11-29
    • 146

      if the operation context is interrupted at this point, the thread that was executing that code will throw an exception. However, the ActiveMigrationsRegistry will still think that it is locked because _migrationsBlocked is true, so no one else will be able to acquire the ActiveMigrationsRegistry lock anymore.

            Assignee:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Reporter:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: