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

collMod coordinator can deadlock on tracked unsharded collection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc1
    • Affects Version/s: 8.0.0-rc1
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-04-15
    • 115

      In SERVER-70321 we fixed a bug that was causing the CollMod coordinator to re-execute a phase after unblocking migration on the collection.

      The clean way to solve that bug would have been to move the resumeMigration call to a dedicated phase. Unfortunately, since we needed to backport the fix we couldn't add a new phase otherwise we would have introduce backward incompatibility. Thus in the end we implemented a more involved solution.

      The adopted solution relies on checking for the presence of the allowMigrations flag on the config server to understand if we already called resumeMigration. Unfortunately, this does not work for tracked unsharded collection (introduced in 8.0) because for this class of collection stopMigration() does not set the allowMigration flag.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: