-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Index Maintenance
-
None
-
Fully Compatible
-
Execution Team 2020-08-10
jstests/noPassthrough/resumable_index_build*.js test that we write out state from index builds in various states to disk during shutdown. However, we are not writing out state relevant to the expected phase of the index build right now. For example, resumable_index_build_collection_scan_phase.js expects state from the collection scan phase to be written, but what is actually written is state from the bulk load phase.
SERVER-47604 might be relevant here because we stepdown the node before shutting it down, so we log "Index build: failed" before shutdown happens and the test waits for that message to be logged before turning off the failpoint. This could cause the index build to resume and even transition to the next phase. Then when shutdown happens, we write out state for the new phase out to disk instead of the phase we intended.
This ticket should first investigate whether SERVER-47604 actually resolves the issue.
- is depended on by
-
SERVER-50095 Augment ResumableIndexBuildTest to ensure that index builds are resumed from the correct phase
- Closed
- is related to
-
SERVER-51020 Abort index builds for rollback in the expected phase in resumable index build rollback tests
- Closed