[
https://issues.apache.org/jira/browse/HAWQ-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yi Jin reassigned HAWQ-1321:
----------------------------
Assignee: Yi Jin (was: Ed Espino)
> failNames wrongly uses memory context to build message when ANALYZE failed
> --------------------------------------------------------------------------
>
> Key: HAWQ-1321
> URL: https://issues.apache.org/jira/browse/HAWQ-1321
> Project: Apache HAWQ
> Issue Type: Bug
> Components: Core
> Reporter: Yi Jin
> Assignee: Yi Jin
> Fix For: 2.2.0.0-incubating
>
>
> I find one bug exist in generating error message for ANALYZE when the message
> size is large.
> In analyzeStmt(), there is a variable called failNames. It is initialized in
> caller's memory context, but it repallocs memory in relation context, and it
> is freed in statement context. This is bug of wrongly using memory context.
> when the relation and statement context are dropped at then end of function
> analyzeStmt(), pat of its content will be flushed with 0. This explain why
> another block's header was randomly wiped out in the bug.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)