-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
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
- is depended on by
-
SERVER-43692 enable two phase index builds by default
- Closed
- is duplicated by
-
SERVER-39069 Recover in-progress index builds on restart
- Closed
- related to
-
SERVER-45553 Single phase hybrid index build should not do clean up with RSTL lock held.
- Closed
-
SERVER-39069 Recover in-progress index builds on restart
- Closed
-
SERVER-39451 Add recover to a stable timestamp logic for startIndexBuild, abortIndexBuild, commitIndexBuild
- Closed
-
SERVER-48419 Extend rollback to recover resumable index builds efficiently
- Closed