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

Investigate a segfault when not rebuilding VariableEnvironment after memo implementation phase

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Optimization

      After running the memo implementation phase, we currently rebuild the env for each resulting plan here. The rebuild and the following assertion were initially added for debugging purposes but now appear to be hiding a bug that can cause a segmentation fault if the env is not rebuilt after running physical rewrites. We should investigate and fix the segfault, and only call rebuild in debug builds. See this comment for a more detailed description of the segmentation fault.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            henri.nikku@mongodb.com Henri Nikku
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: