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

ReshardingCoordinatorService doesn't fulfill promises on executor shutdown

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc2, 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v6.2
    • 135
    • 2

      In BF-26723, it was found that the ReshardingCoordinatorService relies on the executor to emplace promises after running _isReshardingOpRedundant(). If the executor is shut down as part of stepDown(), the `onCompletion` in chain is not run that causes unfulfilled promises resulting in invariant failure when the old primary instances are destroyed. One fix is to run the cleanup on a different executor.

            Assignee:
            abdul.qadeer@mongodb.com Abdul Qadeer
            Reporter:
            abdul.qadeer@mongodb.com Abdul Qadeer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: