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

Skip sharding DB check during index builds

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc4, 6.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.1
    • Execution Team 2022-09-19, Execution Team 2022-10-03
    • 5

    Description

      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.

      Attachments

        Activity

          People

            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: