Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4272

SortedRanges.Range#compareTo is not spec compliant

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 2.0.3-alpha, 1.1.2
    • Component/s: task
    • Labels:

      Description

      SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure

      sgn(x.compareTo(y)) == -sgn(y.compareTo(x))

      for all x and y."

      This is manifested as TestStreamingBadRecords failures in alternative JDKs.

        Attachments

        1. mapreduce-4272-branch-1.0.patch
          1 kB
          Luke Lu
        2. mapreduce-4272-branch-2.patch
          1 kB
          Yu Gao
        3. mapreduce-4272.patch
          1 kB
          Yu Gao

          Issue Links

            Activity

              People

              • Assignee:
                crystal_gaoyu Yu Gao
                Reporter:
                vicaya Luke Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: