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

Replicated index build can be missing from catalog after unclean shutdown

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • ALL
    • Execution Team 2024-10-28, Execution Team 2024-12-23

      In the following series of events:

      1. Index build starts. It is journaled and written to the oplog.
      2. Node is shutdown uncleanly
      3. A checkpoint was not taken

      The node can be left in a state at startup where the index build does not exist on the catalog but exists in the oplog.

      This can be a problem when a problematic index build is the cause of unclean shutdown as we'll likely end up in a restart loop (node crashes during startup from the index build, restarts, crashes again). We are unable to drop the index build in standalone because it is not reconciled to the catalog. recoverFromOplogAsStandalone=true is also unhelpful in this case as it is a read-only mode and thus unable to drop the index while the problematic index build is in progress.

            Assignee:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Reporter:
            shinyee.tan@mongodb.com Shin Yee Tan
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: