Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-473

Memory leak reported in ParquetRecordReader when running a hash aggregation test

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      This memory leak was detected when working on Drill-443. To reproduce, remove the @Ignore label of testQ8() and testQ8_1() in TestHashAggr.java. See stack below.

      Total 2 allocation(s) of byte size(s): 40000, 40000, at stack location:
      org.apache.drill.exec.memory.TopLevelAllocator$ChildAllocator.buffer(TopLevelAllocator.java:96)
      org.apache.drill.exec.memory.TopLevelAllocator$ChildAllocator.buffer(TopLevelAllocator.java:101)
      org.apache.drill.exec.vector.BigIntVector.allocateNew(BigIntVector.java:103)
      org.apache.drill.exec.vector.AllocationHelper.allocate(AllocationHelper.java:29)
      org.apache.drill.exec.store.VectorHolder.allocateNew(VectorHolder.java:90)
      org.apache.drill.exec.store.VectorHolder.reset(VectorHolder.java:73)
      org.apache.drill.exec.store.parquet.ParquetRecordReader.resetBatch(ParquetRecordReader.java:275)
      org.apache.drill.exec.store.parquet.ParquetRecordReader.next(ParquetRecordReader.java:333)
      org.apache.drill.exec.physical.impl.ScanBatch.next(ScanBatch.java:94)
      org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:107)
      org.apache.drill.exec.record.AbstractSingleRecordBatch.next(AbstractSingleRecordBatch.java:42)
      org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:107)
      org.apache.drill.exec.physical.impl.aggregate.HashAggBatch.next(HashAggBatch.java:105)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            amansinha100 Aman Sinha
            amansinha100 Aman Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment