Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-1321

failNames wrongly uses memory context to build message when ANALYZE failed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0.0-incubating
    • Fix Version/s: 2.1.0.0-incubating
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yjin Yi Jin
                Reporter:
                yjin Yi Jin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: