hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xu Yang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (YARN-2455) The function compareTo of variable UNBOUNDED in org.apache.hadoop.yarn.util.resource.Resources is defined wrong.
Date Tue, 26 Aug 2014 06:58:58 GMT

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

Xu Yang resolved YARN-2455.
---------------------------

    Resolution: Duplicate

Look the same issue YARN-2454.


> The function compareTo of variable UNBOUNDED in org.apache.hadoop.yarn.util.resource.Resources
is defined wrong.
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-2455
>                 URL: https://issues.apache.org/jira/browse/YARN-2455
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Xu Yang
>
> 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.2#6252)

Mime
View raw message