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

Ensure MigrationSourceManager fulfills its promise when aborting in early stages

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 7.0.13, 8.0.0-rc14
    • Affects Version/s: 6.0.0, 7.0.0, 8.0.0-rc0, 7.3.0, 8.1.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0
    • CAR Team 2024-07-22
    • 0

      From the donor side of a chunk migration, before starting the core steps of the migration (clone, catch up, commit...), MigrationSourceManager needs to check or wait until several preconditions are met. However:

      To implement a minimal fix for this problem, we should make sure that if an exception is thrown from MigrationSourceManager's constructor, it will fulfill the completion promise, so other threads trying to abort the migration will be able to wait on the promise successfully, instead of getting a BrokenPromise error propagated and also failing themselves.

            Assignee:
            joan.bruguera-mico@mongodb.com Joan Bruguera Micó
            Reporter:
            joan.bruguera-mico@mongodb.com Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: