hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Guo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HAWQ-1214) Remove resource_parameters in calculate_planner_segment_num()
Date Mon, 12 Dec 2016 09:46:59 GMT
Paul Guo created HAWQ-1214:
------------------------------

             Summary: Remove resource_parameters in calculate_planner_segment_num()
                 Key: HAWQ-1214
                 URL: https://issues.apache.org/jira/browse/HAWQ-1214
             Project: Apache HAWQ
          Issue Type: Bug
            Reporter: Paul Guo
            Assignee: Lei Chang


The reasons are:

1) It is not used anymore.

2) Have seen crash due to this.  The scenario is that:
 
The datalocality memory context on which resource_parameters is palloc-ed is reset before
calculate_planner_segment_num() finishes, thus later access to resource_parameters could lead
to crash or wrong results. A code path example which could lead to segfault is:

ProcessUtility()->PerformCursorOpen()->_copyPlannedStmt()->_copyQueryResourceParameters()




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

Mime
View raw message