Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1533

TestSnappy() throws OOM exception with Parquet-1485 change

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.11.0
    • 1.11.0
    • parquet-mr
    • Mac OS 10.14.1

    Description

      Parquet-1485 initialize the buffer size(inputBuffer and outputBuffer) from 0 to 128M in total. This cause the unit test TestSnappy() failed with OOM exception. This is on my Mac laptop. 

      To solve the unit test failure, we can increase the size of -Xmx from 512m to 1024m like below. However, we need to evaluate whether or not the increase of the initial size of direct memory usage for inputBuffer and outputBuffer will cause real Parquet application OOM or not, if that application is not with big enough -Xmx size. 

      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      ...
      <argLine>-Xmx1014m</argLine>

      ...

      For details of the exception, the commit page (https://github.com/apache/parquet-mr/commit/7dcdcdcf0eb5e91618c443d4a84973bf7883d79b) has the detail. 

      Attachments

        Issue Links

          Activity

            People

              gszadovszky Gabor Szadovszky
              shangx@uber.com Xinli Shang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: