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-3780) Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition
Date Mon, 08 Jun 2015 15:30:02 GMT

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

Hudson commented on YARN-3780:
------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #220 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/220/])
YARN-3780. Should use equals when compare Resource in (devaraj: rev c7ee6c151c5771043a6de3b8a951cea13f59dd7b)
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java
* hadoop-yarn-project/CHANGES.txt


> Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition
> -----------------------------------------------------------------------------
>
>                 Key: YARN-3780
>                 URL: https://issues.apache.org/jira/browse/YARN-3780
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.7.0
>            Reporter: zhihai xu
>            Assignee: zhihai xu
>            Priority: Minor
>             Fix For: 2.8.0
>
>         Attachments: YARN-3780.000.patch
>
>
> Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition to avoid
unnecessary NodeResourceUpdateSchedulerEvent.
> The current code use {{!=}} to compare Resource totalCapability, which will compare reference
not the real value in Resource. So we should use equals to compare Resource.



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

Mime
View raw message