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

ReshardingCoordinatorService doesn't fulfill promises on executor shutdown

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc2, 6.3.0-rc0
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v6.2
    • 135
    • 2

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: