hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2454) Fix compareTo of variable UNBOUNDED in o.a.h.y.util.resource.Resources.
Date Sat, 02 May 2015 18:32:07 GMT

    [ https://issues.apache.org/jira/browse/YARN-2454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14525395#comment-14525395
] 

Hudson commented on YARN-2454:
------------------------------

FAILURE: Integrated in Hadoop-trunk-Commit #7717 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/7717/])
YARN-2454. Fix compareTo of variable UNBOUNDED in o.a.h.y.util.resource.Resources. Contributed
by Xu Yang. (junping_du: rev 57d9a972cbd62aae0ab010d38a0973619972edd6)
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/resource/Resources.java
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/resource/TestResources.java
* hadoop-yarn-project/CHANGES.txt


> Fix compareTo of variable UNBOUNDED in o.a.h.y.util.resource.Resources.
> -----------------------------------------------------------------------
>
>                 Key: YARN-2454
>                 URL: https://issues.apache.org/jira/browse/YARN-2454
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.4.0, 2.5.0, 2.4.1
>            Reporter: Xu Yang
>            Assignee: Xu Yang
>             Fix For: 2.8.0
>
>         Attachments: YARN-2454 -v2.patch, YARN-2454-patch.diff, YARN-2454.patch
>
>
> The variable UNBOUNDED implement the abstract class Resources, and override the function
compareTo. But there is something wrong in this function. We should not compare resources
with zero as the same as the variable NONE. We should change 0 to Integer.MAX_VALUE.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message