[SERVER-68337] Perform collectionUUID check inside of AutoGetCollection Created: 26/Jul/22  Updated: 29/Oct/23  Resolved: 21/Oct/22

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Noma Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-68336 Add version of AutoGetCollection whic... Closed
Related
related to SERVER-78460 Complete TODO listed in SERVER-63754 Closed
related to SERVER-63754 avoid copying NamespaceStringOrUUID v... Closed
is related to SERVER-70649 Collection UUID mismatch error is not... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-31
Participants:

 Description   

For the commands which take a collectionUUID parameter, typically we take an AutoGetCollection to acquire the collection followed by a checkCollectionUUIDMismatch. We can streamline this process a bit by allowing AutoGetCollection to take an optional parameter for the expected UUID. This would also allow us to skip the lookup in the view catalog when collectionUUID is specified, preventing an InvalidViewDefinition error if invalid view definitions are present in system.views.



 Comments   
Comment by Githook User [ 21/Oct/22 ]

Author:

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

Message: SERVER-68337 Perform `collectionUUID` check inside `AutoGetCollection`
Branch: master
https://github.com/mongodb/mongo/commit/478c1607b57bc725eee1bec6ca04f177d4de1520

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