Zoltan Ivanfi created PARQUET-1208:
--------------------------------------

             Summary: Occasional endless loop in unit test
                 Key: PARQUET-1208
                 URL: https://issues.apache.org/jira/browse/PARQUET-1208
             Project: Parquet
          Issue Type: Bug
            Reporter: Zoltan Ivanfi
            Assignee: Zoltan Ivanfi


An excerpt from {{TestParquetMetadataConverter.randomTestFilterMetaData}}:

{code:java}
    for (int j = 0; j < 100; j++) {
      // ...
      int splitSize = random.nextInt(10000);
      // ...
      verifyAllFilters(melead tadata(rgs), splitSize);
      // ...
    }
{code}

An excerpt from {{verifyAllFilters(FileMetaData md, long splitWidth)}}:

{code:java}
    for (long start = 0; start < fileSize(md); start += splitWidth) {
{code}

When {{random.nextInt(10000);}} returns 0, this will result in an infinite loop.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to