Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.6.0, 3.0.0-alpha1
-
None
-
Reviewed
-
Patch
Description
Obviously this is a typo and the second getId() call should be rewritten as 'other.getId()'
Lines 94-102
@Override public int compareTo(ReservationId other) { if (this.getClusterTimestamp() - other.getClusterTimestamp() == 0) { return getId() > getId() ? 1 : getId() < getId() ? -1 : 0; } else { return this.getClusterTimestamp() > other.getClusterTimestamp() ? 1 : this.getClusterTimestamp() < other.getClusterTimestamp() ? -1 : 0; } }
Attachments
Attachments
Issue Links
- duplicates
-
YARN-6296 ReservationId.compareTo ignores id when clustertimestamp is the same
- Resolved
- links to