[
https://issues.apache.org/jira/browse/YARN-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13692224#comment-13692224
]
Sandy Ryza commented on YARN-881:
---------------------------------
There are places in the code that rely on the current ordering,
AppSchedulingInfo, for example. The thinking may have been that we most
commonly want to traverse priorities from high to low, which is more
straightforward if the higher ones are at the front of the list.
> Priority#compareTo method seems to be wrong.
> --------------------------------------------
>
> Key: YARN-881
> URL: https://issues.apache.org/jira/browse/YARN-881
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Jian He
> Assignee: Jian He
>
> if lower int value means higher priority, shouldn't we "return
> other.getPriority() - this.getPriority() "
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira