QueryPlannerParams should not maintain pointers owned by the IndexCatalogEntry

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      The QueryPlannerParams contains a CollectionInfo object which stores index information. The IndexEntry class stores some pointers taken from the IndexCatalogEntry class.

      If that IndexCatalogEntry is invalidated (likely due to a refreshEntry call) then these pointers will become invalid once the last reference to this shared state is released. This means that if there is a yield in the query which is using these QueryPlannerParams, the IndexCatalogEntry could be destroyed and some of the IndexEntry will become invalid.

            Assignee:
            Ruoxin Xu
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: