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

CollectionCatalog::lookupCollectionBy* do not consider commit-pending collections

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • 2
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      The lookupCollectionBy* methods only consider commit-pending collections if the collection has been previously established via establishConsistentCollection.

      This is a foot gun, and we should either fix it or document it in the header file. While SERVER-101457 will reduce the blast radius by making the lookupCollectionBy family only accessible inside the catalog, the problem still remains for internal usages. See SERVER-104858 as an example.

            Assignee:
            Unassigned Unassigned
            Reporter:
            josef.ahmad@mongodb.com Josef Ahmad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: