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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.0.0
    • None
    • Core
    • 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

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

              Dates

                Created:
                Updated: