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

Disallow index build external abort when there is already an internal abort ongoing

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.0
    • Execution Team 2023-05-29
    • 135

      See SERVER-76777 for detailed description. Concurrent external aborts can race with internal aborts, and end up in a deadlock.  To reduce backport risk, in SERVER-76777 we introduced a workaround which involves adding a timeout to lock acquisition and rechecking if the build is already aborted.

      The proper fix should be to disallow an external abort when the index build already detected an error and is cleaning up. PR for this: https://github.com/10gen/mongo/pull/12617

      This ticket should revert SERVER-76777 and implement the above PR.

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: