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

Occasional endless loop in unit test

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0
    • Component/s: None
    • Labels:
      None

      Description

      An excerpt from TestParquetMetadataConverter.randomTestFilterMetaData:

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

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

          for (long start = 0; start < fileSize(md); start += splitWidth) {
      

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zi Zoltan Ivanfi
                Reporter:
                zi Zoltan Ivanfi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: