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

Skip sharding DB check during index builds

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Jordi Olivares Provencio
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: