Ruilong Huo created HAWQ-666:
--------------------------------

             Summary: Restore to correct memory context after free query 
resource in ExecutorEnd
                 Key: HAWQ-666
                 URL: https://issues.apache.org/jira/browse/HAWQ-666
             Project: Apache HAWQ
          Issue Type: Bug
          Components: Core
            Reporter: Ruilong Huo
            Assignee: Lei Chang


In ExecutorEnd, we need to restore to correct memory context after free query 
resource. There are two memory context based on PG_TRY of mppExecutorFinishup:
1. If mppExecutorFinishup completes successfully, the correct memory context is 
estate->es_query_cxt
2. If mppExecutorFinishup errors, the correct memory context is ErrorContext

Current implementation use estate->es_query_cxt for both situation. We need to 
fix this as it may lead to core dump during memory context cleanup afterwards.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to