[SERVER-44544] IndexBuildsCoordinator::_buildIndexTwoPhase() crashes after collection scan is interrupted Created: 11/Nov/19  Updated: 29/Oct/23  Resolved: 14/Nov/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-43692 enable two phase index builds by default Closed
Related
is related to SERVER-44393 indexu.js fails in replica_set_passth... Closed
is related to SERVER-38478 Remove UninterruptibleLockGuard in qu... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-11-18
Participants:
Linked BF Score: 17

 Description   

When the collection scan phase is interrupted after releasing its locks, the exception handing in _buildIndexTwoPhase() should re-throw the exception rather than proceed to check the current replication state. We need the RSTL, which is one of the locks released, in order to check the replication state. This may lead to the server crashing on the Locker::isRSTLLocked() invariant



 Comments   
Comment by Githook User [ 11/Nov/19 ]

Author:

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

Message: SERVER-44544 IndexBuildsCoordinator::_buildIndexTwoPhase() rethrows interrupton exceptions without waiting for abort
Branch: master
https://github.com/mongodb/mongo/commit/54f73b7707c07a60ea0171c992f7e7cfc8e5ec49

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