Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4272

SortedRanges.Range#compareTo is not spec compliant

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

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

        Issue Links

          Activity

          Luke Lu created issue -
          Luke Lu made changes -
          Field Original Value New Value
          Description SortedRange.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.
          SortedRange.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."

          This is manifested as TestStreamingBadRecords failures in alternative JDKs.
          Luke Lu made changes -
          Attachment mapreduce-4272-branch-1.0.patch [ 12528298 ]
          Luke Lu made changes -
          Summary SortedRange.Range#compareTo is not spec compliant SortedRanges.Range#compareTo is not spec compliant
          Description SortedRange.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."

          This is manifested as TestStreamingBadRecords failures in alternative JDKs.
          SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."

          This is manifested as TestStreamingBadRecords failures in alternative JDKs.
          Luke Lu made changes -
          Link This issue is related to HADOOP-8192 [ HADOOP-8192 ]
          Matt Foley made changes -
          Target Version/s 1.1.0, 2.0.0-alpha [ 12317960, 12320354 ] 2.0.0-alpha, 1.2.0 [ 12320354, 12321661 ]
          Yu Gao made changes -
          Attachment mapreduce-4272-branch-2.patch [ 12551774 ]
          Yu Gao made changes -
          Attachment mapreduce-4272.patch [ 12551775 ]
          Luke Lu made changes -
          Assignee Luke Lu [ vicaya ] Yu Gao [ crystal_gaoyu ]
          Luke Lu made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 1.2.0, 2.0.0-alpha [ 12321661, 12320354 ] 2.0.0-alpha, 1.2.0 [ 12320354, 12321661 ]
          Luke Lu made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Target Version/s 1.2.0, 2.0.0-alpha [ 12321661, 12320354 ] 2.0.0-alpha, 1.2.0 [ 12320354, 12321661 ]
          Fix Version/s 1.2.0 [ 12321661 ]
          Fix Version/s 1.1.2 [ 12323594 ]
          Resolution Fixed [ 1 ]
          Matt Foley made changes -
          Fix Version/s 1.2.0 [ 12321661 ]
          Matt Foley made changes -
          Target Version/s 1.2.0, 2.0.0-alpha [ 12321661, 12320354 ] 2.0.0-alpha, 1.1.2 [ 12320354, 12323594 ]
          Matt Foley made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Luke Lu made changes -
          Fix Version/s 3.0.0 [ 12320355 ]
          Fix Version/s 2.0.3-alpha [ 12323275 ]
          Luke Lu made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Allen Wittenauer made changes -
          Fix Version/s 3.0.0 [ 12320355 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development