[SERVER-43415] indexbg_killop_primary.js crashes when two phase index builds are enabled Created: 23/Sep/19  Updated: 29/Oct/23  Resolved: 02/Oct/19

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

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
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-43637 Enable hybrid_unique_index_with_updat... Closed
is depended on by SERVER-43692 enable two phase index builds by default Closed
Duplicate
is duplicated by SERVER-43637 Enable hybrid_unique_index_with_updat... Closed
Related
related to SERVER-43869 aborted index build cleanup on mobile... Closed
related to SERVER-43837 remove RSTL unlocking logic from Mult... Closed
related to SERVER-44045 allow secondary index builds to start... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-10-07
Participants:

 Description   

When two phase index builds are enabled, running the JS test indexbg_killop_primary.js crashes on the secondary during oplog application. The invariant in the test output indicates that we do not have the necessary locks to clean up the index build on the secondary node.



 Comments   
Comment by Githook User [ 28/Sep/19 ]

Author:

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

Message: SERVER-43415 MultiInblock::cleanUpAfterBuild() always assumes we have the necessary locks for index build cleanup

This removes the check introduced in commit ee209fb1ee29e6d4178b507b561ebdaf85c729ee.
Branch: master
https://github.com/mongodb/mongo/commit/12011588f517f910ea5b6a34591755b3ca04223d

Comment by Githook User [ 28/Sep/19 ]

Author:

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

Message: SERVER-43415 abortIndexBuild should not abort secondary oplog application
Branch: master
https://github.com/mongodb/mongo/commit/8da834080033734637ba1978b103c7ea8dfb7915

Comment by Githook User [ 28/Sep/19 ]

Author:

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

Message: SERVER-43415 IndexBuildsCoordinator acquires locks before cleaning up a failed index build
Branch: master
https://github.com/mongodb/mongo/commit/68f0f19d1da4fc1adcc746481a7f65ecc6d01e26

Comment by Louis Williams [ 26/Sep/19 ]

Remove the "two_phase_index_builds_unsupported" tags in indexbg_killop_primary.js and indexbg_killop_primary_after_init.js added by SERVER-43301

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