Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0-alpha2
-
None
-
None
Description
Per YARN-6252
public int compareTo(ReservationId other) { if (this.getClusterTimestamp() - other.getClusterTimestamp() == 0) { return getId() > getId() ? 1 : getId() < getId() ? -1 : 0; } else { } }
compares id with itself. It should be
return this.getId() > other.getId() ? 1 : (this.getId() < other.getId() ? -1 : 0);