[SERVER-73040] Ban all lock upgrades Created: 19/Jan/23  Updated: 23/Jan/24  Resolved: 10/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Fausto Leyva (Inactive) Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: storex-shortlist
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-72703 Downgrade $out's db lock to MODE_IX Closed
depends on SERVER-60621 Investigate if we can ban upgrading t... Closed
depends on SERVER-73043 Avoid upgrading lock in dbtests Closed
depends on SERVER-73058 QueryStageCollectionScanTest acquires... Closed
depends on SERVER-73101 Avoid upgrading locks in db unit tests Closed
depends on SERVER-73249 Investigate behavior for requesting I... Closed
depends on SERVER-80428 Avoid lock upgrade when renaming coll... Closed
depends on SERVER-80942 Prevent lock upgrade in createIndexes... Closed
depends on SERVER-80963 Prevent lock upgrade in ShardingRecov... Closed
depends on SERVER-81051 Prevent lock upgrade when aborting in... Closed
depends on SERVER-84668 Avoid tenant lock upgrade when applyi... Closed
Duplicate
is duplicated by SERVER-73060 Remove lock upgrade tests in LockMana... Closed
Problem/Incident
causes SERVER-85232 Set `InMultiDocumentTransaction` flag... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2024-01-22
Participants:
Linked BF Score: 155

 Description   

The goal of SERVER-60621 was to ban all Global Lock upgrades (which was essentially completed in --> SERVER-66145). 

This ticket aims to ban all lock upgrades not just global lock upgrades. At this time, lock upgrades occur in LockManager::convert() and the motivation behind this ticket would be the same as in SERVER-60621 "as it could help us identify additional bugs we haven't hit yet, and avoid future ones". 



 Comments   
Comment by Githook User [ 10/Jan/24 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-73040 Ban lock upgrades (#17954)

GitOrigin-RevId: ad6babb34836806168da6a8cb65ada8d8740bd0a
Branch: master
https://github.com/mongodb/mongo/commit/e0f9c53c86e3441b574ac9d2ad9b67e2db5d18f7

Comment by Connie Chen [ 13/Feb/23 ]

Throwing this into "Blocked" status so we will re-triage once all linked dependencies are closed and (hopefully) can close this ticket

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