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

Two-phase index builds can leave leftover entries in 'config.system.indexBuilds'

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL

      The 'config.system.indexBuilds' collection is replicated and the index build entries will be removed from it after the commitIndexBuild/abortIndexBuild oplog entry. However, this opens the possibility for these index build entries to be left behind in the collection. Consider the following sequence:

      - Checkpoint @ 5.
      - startIndexBuild @ 6.
      - commitIndexBuild/abortIndexBuild @ 7.
      - Remove config.system.indexBuilds entry @ 8.
      - Take a backup. We will restore @ 5.
      - Start a standalone on the backed-up files, set the oplogTruncateAfterPoint to 7.
      - Restart with --recoverFromOplogAsStandalone.
      - We replay the oplog entries at 6 and 7, but never 8.
      

      This is already the case since v4.4 when aborting index builds and since SERVER-60753 when committing index builds. This doesn't have any bad consequences.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: