Update plan cache IndexabilityDiscriminator when IndexCatalogEntry is updated

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.6.18, 4.0.19
    • Component/s: None
    • None
    • ALL
    • Query 2020-06-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When the collMod operation updates the TTL of an index, we delete the existing IndexCatalogEntry and create a new one with the updated specifications. The IndexCatalogEntry also owns a CollatorInterface object. The same CollatorInterface object is being used in the plan cache here. So after the IndexCatalogEntry got deleted and re-created, the pointer to collator in CompositeIndexabilityDiscriminator is pointing to a freed memory.

      This seems to have been fixed on 4.2, but still an issue in 3.6 and 4.0.

            Assignee:
            Arun Banala
            Reporter:
            Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: