[SERVER-76935] Disallow index build external abort when there is already an internal abort ongoing Created: 09/May/23  Updated: 29/Oct/23  Resolved: 25/May/23

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

Type: Improvement 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
Gantt Dependency
has to be done after SERVER-76777 Deadlock between index build external... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: Execution Team 2023-05-29
Participants:
Linked BF Score: 135

 Description   

See SERVER-76777 for detailed description. Concurrent external aborts can race with internal aborts, and end up in a deadlock.  To reduce backport risk, in SERVER-76777 we introduced a workaround which involves adding a timeout to lock acquisition and rechecking if the build is already aborted.

The proper fix should be to disallow an external abort when the index build already detected an error and is cleaning up. PR for this: https://github.com/10gen/mongo/pull/12617

This ticket should revert SERVER-76777 and implement the above PR.



 Comments   
Comment by Githook User [ 01/Jun/23 ]

Author:

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

Message: SERVER-76935 Disallow index build internal and external abort concurrency

(cherry picked from commit 7e937514014bfb15cd34b5a0368f23b568c7a8a9)
Branch: v7.0
https://github.com/mongodb/mongo/commit/309c1d544315f6605db254852c2ba1e9ada5eacc

Comment by Githook User [ 25/May/23 ]

Author:

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

Message: SERVER-76935 Disallow index build internal and external abort concurrency
Branch: master
https://github.com/mongodb/mongo/commit/7e937514014bfb15cd34b5a0368f23b568c7a8a9

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