-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Execution
-
Fully Compatible
-
Execution Team 2023-02-20
Currently CollectionCatalog::openCollection only supports lookup by NamespaceString. However, in some cases, the user may provide a UUID rather than a namespace. In these cases, the UUID needs to be resolved to a namespace to use openCollection - but the CollectionCatalog does not support a way to resolve UUIDs at a time in the past. This means that if the user wants to read a collection by UUID for a UUID that existed in the past, but no longer exists in the latest version of the catalog, they cannot successfully find the NamespaceString for that UUID, and so cannot call openCollection. But the whole point of openCollection is to be able to read collections in the past! So we need to change openCollection to support lookup by NamespaceStringOrUUID.
Alternatively, we could add a variant of CollectionCatalog::resolveNamespaceStringOrUUID that takes in a timestamp, and then we could call that function to get a NamespaceString and then pass that to the existing version of openCollection
- is depended on by
-
SERVER-73679 Refactor dbCheck to use PIT catalog lookups
- Closed
-
SERVER-73680 Refactor dbHash to use PIT catalog lookups
- Closed