[SERVER-49448] Index build in unexpected phase during shutdown in resumable_index_build*.js Created: 10/Jul/20  Updated: 29/Oct/23  Resolved: 05/Aug/20

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-50095 Augment ResumableIndexBuildTest to en... Closed
Related
is related to SERVER-51020 Abort index builds for rollback in th... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-08-10
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 05/Aug/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-49448 Interrupt index builds for shutdown during the expected phase in resumable index build tests
Branch: master
https://github.com/mongodb/mongo/commit/c3421443d50acfb81ee299bf5eff6e14879591f3

Generated at Thu Feb 08 05:19:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.