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

Implement startup recovery for two-phase index builds

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2019-11-18, Execution Team 2019-12-02
    • 14

      Implement startup recovery logic for a replica set node that has been restarted. This is split from the work in SERVER-39451.

      This should ideally be able to enable the indexbg_shutdown.js and indexbg_restart_secondary.js tests by fixing a specific bug. This test hits a bug described below on secondaries:

      • Process a startIndexBuild oplog entry and start the background thread
      • Process a commitIndexBuild oplog entry, and wait for the build to finish
      • Interrupt the index build at shutdown, return status::OK
      • Joining the index build will succeed and the "commitIndexBuild" will be successfully applied
      • Restart the secondary, which restarts the index build. The commit will not be applied at startup because it succeeded before shutdown

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: