Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71222

CollectionCatalog::openCollection should support lookup by NamespaceStringOrUUID

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: