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

Core dump due to lock is not released before reporting errors when exceeding MaxAORelSegFileStatus

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      since the lock is not released before reporting errors, it will leads to panic during transaction abort since the lock will be acquired again. A RWLock is acquired twice in one process will leads to panic.

      There are two occurrences of this bug in this function, one for AO, one for parquet.

      			if (id == NEXT_END_OF_LIST)
      			{
      				pfree(allfsinfoParquet);
      
      				ereport(ERROR, (errmsg("cannot open more than %d "
      				      "append-only table segment "
      				      "files cocurrently",
      				      MaxAORelSegFileStatus)));
      
      				return false;
      			}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                huor Ruilong Huo
                Reporter:
                huor Ruilong Huo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: