[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: |
|
||||||||
| 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. |