YARN-3780. Should use equals when compare Resource in
RMNodeImpl#ReconnectNodeTransition. Contributed by zhihai xu.
(cherry picked from commit c7ee6c151c
)
Conflicts:
hadoop-yarn-project/CHANGES.txt
This commit is contained in:
parent
84f1d99d02
commit
aaff9dc39b
|
@ -100,6 +100,9 @@ Release 2.7.2 - UNRELEASED
|
|||
YARN-4005. Completed container whose app is finished is possibly not
|
||||
removed from NMStateStore. (Jun Gong via jianhe)
|
||||
|
||||
YARN-3780. Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition.
|
||||
(zhihai xu via devaraj)
|
||||
|
||||
Release 2.7.1 - 2015-07-06
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -600,7 +600,8 @@ public class RMNodeImpl implements RMNode, EventHandler<RMNodeEvent> {
|
|||
rmNode.httpPort = newNode.getHttpPort();
|
||||
rmNode.httpAddress = newNode.getHttpAddress();
|
||||
boolean isCapabilityChanged = false;
|
||||
if (rmNode.getTotalCapability() != newNode.getTotalCapability()) {
|
||||
if (!rmNode.getTotalCapability().equals(
|
||||
newNode.getTotalCapability())) {
|
||||
rmNode.totalCapability = newNode.getTotalCapability();
|
||||
isCapabilityChanged = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue