hadoop-yarn-issues mailing list archives

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

     [ https://issues.apache.org/jira/browse/YARN-2454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Junping Du updated YARN-2454:
-----------------------------
    Summary: Fix compareTo of variable UNBOUNDED in o.a.h.y.util.resource.Resources.  (was:
The function compareTo of variable UNBOUNDED in org.apache.hadoop.yarn.util.resource.Resources
is definited wrong.)

> 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
>         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