[SERVER-78438] acquireCollectionsOrViews should leave snapshot open if in WUOW Created: 26/Jun/23  Updated: 29/Oct/23  Resolved: 28/Jun/23

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

Type: Bug 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:
Depends
is depended on by SERVER-69461 The behaviour of lock acquisitions di... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution EMEA Team 2023-07-10
Participants:

 Description   

In other acquire functions we check

openSnapshot && !opCtx->lockState()->inAWriteUnitOfWork()

before abandoning the snapshot. But in acquireCollectionsOrViews we only check openSnapshot. This led to hitting an invariant while working in SERVER-69461.



 Comments   
Comment by Githook User [ 03/Jul/23 ]

Author:

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

Message: SERVER-78438 acquireCollectionsOrViews keep snapshot when in WUOW
Branch: EVG-17874-taskgen-test
https://github.com/mongodb/mongo/commit/e1bdb1995093c85f0d92f196e7344edf96075208

Comment by Githook User [ 27/Jun/23 ]

Author:

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

Message: SERVER-78438 acquireCollectionsOrViews keep snapshot when in WUOW
Branch: master
https://github.com/mongodb/mongo/commit/e1bdb1995093c85f0d92f196e7344edf96075208

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