Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3471

TestIndexedSort sometimes fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.18.0
    • test
    • None
    • Reviewed

    Description

      After testing an array of equal values, TestIndexedSort::testAllEqual introduces a min and max value at random intervals:

          int diff = r.nextInt(SAMPLE);
          values[diff] = 9;
          values[(diff + r.nextInt(SAMPLE >>> 1)) % SAMPLE] = 11;
      

      The max value can overwrite the min value and produce a spurious failure.

      Attachments

        1. 3471-0.patch
          1 kB
          Christopher Douglas
        2. 3471-1.patch
          4 kB
          Christopher Douglas

        Activity

          People

            cdouglas Christopher Douglas
            cdouglas Christopher Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: