You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Oleg Danilov (JIRA)" <ji...@apache.org> on 2017/08/16 12:19:00 UTC
[jira] [Created] (YARN-7023) Incorrect ReservationId.compareTo()
implementation
Oleg Danilov created YARN-7023:
----------------------------------
Summary: Incorrect ReservationId.compareTo() implementation
Key: YARN-7023
URL: https://issues.apache.org/jira/browse/YARN-7023
Project: Hadoop YARN
Issue Type: Bug
Reporter: Oleg Danilov
Priority: Minor
Obviously this is a typo and the second getId() call should be rewritten as 'other.getId()'
+Lines 94-102+
{code:java}
@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;
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org