You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Yi Jin (JIRA)" <ji...@apache.org> on 2017/02/10 05:27:41 UTC
[jira] [Created] (HAWQ-1321) failNames wrongly uses memory context
to build message when ANALYZE failed
Yi Jin created HAWQ-1321:
----------------------------
Summary: 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: Ed Espino
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)