hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhihai xu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-3780) Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition
Date Mon, 08 Jun 2015 01:29:00 GMT
zhihai xu created YARN-3780:
-------------------------------

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


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