[SERVER-77474] LockerImpl::isCollectionLockedForMode always returns true in multi-document transactions Created: 25/May/23  Updated: 26/Jul/23  Resolved: 25/Jul/23

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

Type: Bug Priority: Major - P3
Reporter: Jordi Olivares Provencio Assignee: Gregory Noma
Resolution: Duplicate Votes: 0
Labels: techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-53817 Remove check for shouldConflictWithSe... Closed
Assigned Teams:
Storage Execution
Operating System: ALL
Sprint: Execution NAMR Team 2023-08-07
Participants:

 Description   

In multi-document transactions we set the flag for shouldConflictWithSecondaryBatchApplication to false.

Inside the LockerImpl we then check for shouldConflictWithSecondaryBatchApplication which returns false and causes the method to always return true.



 Comments   
Comment by Jordi Olivares Provencio [ 18/Jul/23 ]

AutoGetCollectionForRead* are also susceptible to this since they use the same mechanism to skip the PBWM lock.

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