[jira] [Updated] (HAWQ-1214) Remove resource_parameters

2016-12-21 Thread Ed Espino (JIRA)

 [ 
https://issues.apache.org/jira/browse/HAWQ-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ed Espino updated HAWQ-1214:

Labels:   (was: ToBeClosed)

> Remove resource_parameters
> --
>
> Key: HAWQ-1214
> URL: https://issues.apache.org/jira/browse/HAWQ-1214
> Project: Apache HAWQ
>  Issue Type: Bug
>Reporter: Paul Guo
>Assignee: Paul Guo
> Fix For: 2.1.0.0-incubating
>
>
> 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)


[jira] [Updated] (HAWQ-1214) Remove resource_parameters

2016-12-12 Thread Paul Guo (JIRA)

 [ 
https://issues.apache.org/jira/browse/HAWQ-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Guo updated HAWQ-1214:
---
Summary: Remove resource_parameters  (was: Remove resource_parameters in 
calculate_planner_segment_num())

> Remove resource_parameters
> --
>
> Key: HAWQ-1214
> URL: https://issues.apache.org/jira/browse/HAWQ-1214
> Project: Apache HAWQ
>  Issue Type: Bug
>Reporter: Paul Guo
>Assignee: Paul Guo
>
> 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)