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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0, 5.1.2, 5.0.6, 4.4.11
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v5.1, v5.0, v4.4
    • Sharding EMEA 2021-11-29
    • 146

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: