[SERVER-76915] Index build abort for shutdown should check if cleanup is required Created: 08/May/23  Updated: 29/Oct/23  Resolved: 09/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1

Type: Bug Priority: Major - P3
Reporter: Yujin Kang Park Assignee: Yujin Kang Park
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Execution Team 2023-05-15
Participants:
Linked BF Score: 142

 Description   

It is possible that an index build setup is interrupted for shutdown after instantiating the MultiIndexBlock. In which case the abort for shutdown path is taken, when there is no actual clean up to do. We then hit this invariant



 Comments   
Comment by Githook User [ 15/May/23 ]

Author:

{'name': 'Yu Jin Kang Park', 'email': 'yujin.kang@mongodb.com', 'username': 'ykangpark'}

Message: SERVER-76915 Unregister index build if no cleanup is required in shutdown path
Branch: v7.0
https://github.com/mongodb/mongo/commit/1d57ada934e9aed1864f5d1ce2b875e547b0d8ed

Comment by Githook User [ 09/May/23 ]

Author:

{'name': 'Yu Jin Kang Park', 'email': 'yujin.kang@mongodb.com', 'username': 'ykangpark'}

Message: SERVER-76915 Unregister index build if no cleanup is required in shutdown path
Branch: master
https://github.com/mongodb/mongo/commit/696d8924ff38cca476da7865b39ee7bd6971208b

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