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

CollectionQueryInfo should be initialized for collections created via openCollection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2023-03-06, Execution Team 2023-03-20

      Right now we only initialize CollectionQueryInfo for a collection if it's not being initialized from an existing collection. But this means collections created via CollectionCatalog::openCollection won't have an initialized CollectionQueryInfo, so if CollectionQueryInfo::getIndexKeys() is called on such a collection, it will return wrong information.

      We should verify with a test that there's a bug here, and then fix it if it's confirmed to be a bug.

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

              Created:
              Updated:
              Resolved: