Skip sharding DB check during index builds

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc4, 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.1
    • Execution Team 2022-09-19, Execution Team 2022-10-03
    • 5
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In a sharded cluster there is a race condition where dropping a database while building an index can cause a server crash if the abort happens while holding the critical section "lock" for the database.

      This causes the following invariant to get hit as the error is a StaleDbVersion due to the drop command.

      Aborting an index while dropping the database should catch the fact we are dropping the database and handle it appropriately by cleaning up.

              Assignee:
              Jordi Olivares Provencio
              Reporter:
              Jordi Olivares Provencio
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: