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

SortedRanges.Range#compareTo is not spec compliant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.3
    • 2.0.3-alpha, 1.1.2
    • task

    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-2.patch
          1 kB
          Yu Gao
        2. mapreduce-4272-branch-1.0.patch
          1 kB
          Luke Lu
        3. mapreduce-4272.patch
          1 kB
          Yu Gao

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: