[SERVER-41462] do not lock RSTL for uninterruptible index lock operations Created: 03/Jun/19  Updated: 29/Oct/23  Resolved: 18/Jun/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.2.0-rc2, 4.3.1

Type: Task Priority: Major - P3
Reporter: Eric Milkie Assignee: Eric Milkie
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-41033 set ignore_prepare=true throughout an... Closed
related to SERVER-42824 do not lock RSTL for index build cleanup Closed
related to SERVER-44045 allow secondary index builds to start... Closed
is related to SERVER-44507 Hybrid index build is able to commit ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Execution Team 2019-06-17, Execution Team 2019-07-01
Participants:
Linked BF Score: 19

 Description   

In order to break the cycle of some potential 3-way deadlocks involving index builds, prepared transactions, and step down, we will investigate not acquiring the RSTL for index build locks that are uninterruptible. This is acceptible because index builds that started running on a secondary, and index build aborts in general, do not need to coordinate with step up and step down because they are a rare type of operation that are not interrupted by step up/down.



 Comments   
Comment by Githook User [ 25/Jun/19 ]

Author:

{'name': 'Eric Milkie', 'username': 'milkie', 'email': 'milkie@10gen.com'}

Message: SERVER-41462 unlock RSTL for index builds on secondaries

This is safe to do because index builds started on secondaries do not need to synchronize with step up or step down via the RSTL.

(cherry picked from commit beaa372035ef597e77db2220bb624028417d9ce5)
Branch: v4.2
https://github.com/mongodb/mongo/commit/21f0a00b54c9fac5ac99aa0d2f81039c8564c6c9

Comment by Githook User [ 18/Jun/19 ]

Author:

{'name': 'Eric Milkie', 'email': 'milkie@10gen.com', 'username': 'milkie'}

Message: SERVER-41462 unlock RSTL for index builds on secondaries

This is safe to do because index builds started on secondaries do not need to synchronize with step up or step down via the RSTL.
Branch: master
https://github.com/mongodb/mongo/commit/beaa372035ef597e77db2220bb624028417d9ce5

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