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

Occasional endless loop in unit test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: