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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0, 5.1.2, 5.0.6, 4.4.11
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.1, v5.0, v4.4
    • Sprint:
      Sharding EMEA 2021-11-29
    • Linked BF Score:
      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

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

              Dates

              Created:
              Updated:
              Resolved: