[SERVER-39002] killOp against a primary index build command or index build thread must abort the index build across the replica set Created: 15/Jan/19  Updated: 29/Oct/23  Resolved: 09/Oct/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-39533 Hook up abortIndexBuild such that pri... Closed
is depended on by SERVER-43692 enable two phase index builds by default Closed
Related
related to SERVER-43837 remove RSTL unlocking logic from Mult... Closed
is related to SERVER-41870 Implement IndexBuildsCoordinator::abo... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-10-07, Execution Team 2019-10-21
Participants:

 Description   

Keep in mind, from the design: "An index build that is aborted will write an abortIndexBuilds oplog entry prior to exiting so that the index build is aborted across all replica set members. The abortIndexBuilds oplog entry will be written in the same WUOW that deletes the index catalog entry and config.system.indexBuilds entry."



 Comments   
Comment by Githook User [ 09/Oct/19 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-39002 clean up index builds on the secondary using the timestamp from the abortIndexBuild oplog entry
Branch: master
https://github.com/mongodb/mongo/commit/3cb9e7903a73e0bbcd1b00823bbd53e0f4341acd

Comment by Githook User [ 09/Oct/19 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-39002 write abortIndexBuild oplog entry in same WUOW as index build cleanup
Branch: master
https://github.com/mongodb/mongo/commit/9471cc8ad18cc5f1da025c291e03adfde434ab8d

Comment by Githook User [ 09/Oct/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-39002 IndexBuildsCoordinator checks replication state before writing abortIndexBuild oplog entry
Branch: master
https://github.com/mongodb/mongo/commit/342d72abd4b40d5325e7a252ca1c71bada457a9b

Comment by Githook User [ 09/Oct/19 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-39002 add IndexBuildsCoordinator::joinIndexBuild()
Branch: master
https://github.com/mongodb/mongo/commit/e3c434d49714eb460b5c35b9d9202cf88082b743

Comment by Githook User [ 09/Oct/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-39002 IndexBuildsCoordinator::abortIndexBuildByBuildUUID() returns void
Branch: master
https://github.com/mongodb/mongo/commit/78a6b5895d43ba751a6f87127af30ab7e61cf79a

Comment by Githook User [ 08/Oct/19 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-39002 IndexBuildsManager::tearDownIndexBuild() accepts MultiIndexBuild::OnCleanUpFn
Branch: master
https://github.com/mongodb/mongo/commit/265bdc7e2358eac75cc61943d97c8cb6860e667c

Comment by Githook User [ 08/Oct/19 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-39002 MultiIndexBlock::cleanUpAfterBuild() accepts a post-catalog update callback
Branch: master
https://github.com/mongodb/mongo/commit/24801040674811d777db91508419522e933e0b1e

Comment by Benety Goh [ 02/Oct/19 ]

Code review url: http://mongodbcr.appspot.com/497700039

Comment by Benety Goh [ 11/Sep/19 ]

IndexBuildsCoordinator::abortIndexBuildByBuildUUID() was implemented in SERVER-41870. A killOp against a primary index build command will relay the abort signal to the active index build managed by the IndexBuildsCoordinator.

Comment by Benety Goh [ 10/Sep/19 ]

SERVER-39533 writes to the oplog an abortIndexBuild entry when an index build fails. This ticket ensures that removal of the index from the mdb catalog is performed with the same timestamp as the oplog entry.

Generated at Thu Feb 08 04:50:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.