[SERVER-69504] Leave index build phase intact upon exception during collection scan Created: 07/Sep/22  Updated: 29/Oct/23  Resolved: 09/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

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

Issue Links:
Depends
Related
is related to SERVER-50446 make index builds non-resumable when ... Closed
is related to SERVER-57403 Serialization error in let variables ... Closed
is related to SERVER-67611 Stop using ErrorCategory::Interruptio... Closed
is related to SERVER-69496 InterruptedAtShutdown can be thrown w... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-09-19
Participants:
Linked BF Score: 151

 Description   

When an exception causes the collection scan of an index build to stop, we reset the phase tracker back to kInitialized if the index build will not be resumed. However, this can cause the subsequent log message to be confusing since it will report that the index build is still in the initialized state despite also having the collection scan position that the scan was stopped at.



 Comments   
Comment by Githook User [ 09/Sep/22 ]

Author:

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

Message: SERVER-69504 Leave index build phase intact upon exception during collection scan
Branch: master
https://github.com/mongodb/mongo/commit/efa5b8e76a4792256d06efd9b87b1f6e28cfd763

Generated at Thu Feb 08 06:13:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.