YARN-3780. Should use equals when compare Resource in
RMNodeImpl#ReconnectNodeTransition. Contributed by zhihai xu. (cherry picked from commit c7ee6c151c5771043a6de3b8a951cea13f59dd7b) Conflicts: hadoop-yarn-project/CHANGES.txt
This commit is contained in:
parent
2ecd173426
commit
4770f190b8
@ -33,6 +33,9 @@ Release 2.6.2 - UNRELEASED
|
|||||||
YARN-4005. Completed container whose app is finished is possibly not
|
YARN-4005. Completed container whose app is finished is possibly not
|
||||||
removed from NMStateStore. (Jun Gong via jianhe)
|
removed from NMStateStore. (Jun Gong via jianhe)
|
||||||
|
|
||||||
|
YARN-3780. Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition.
|
||||||
|
(zhihai xu via devaraj)
|
||||||
|
|
||||||
Release 2.6.1 - 2015-09-23
|
Release 2.6.1 - 2015-09-23
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -592,7 +592,8 @@ public void transition(RMNodeImpl rmNode, RMNodeEvent event) {
|
|||||||
rmNode.httpPort = newNode.getHttpPort();
|
rmNode.httpPort = newNode.getHttpPort();
|
||||||
rmNode.httpAddress = newNode.getHttpAddress();
|
rmNode.httpAddress = newNode.getHttpAddress();
|
||||||
boolean isCapabilityChanged = false;
|
boolean isCapabilityChanged = false;
|
||||||
if (rmNode.getTotalCapability() != newNode.getTotalCapability()) {
|
if (!rmNode.getTotalCapability().equals(
|
||||||
|
newNode.getTotalCapability())) {
|
||||||
rmNode.totalCapability = newNode.getTotalCapability();
|
rmNode.totalCapability = newNode.getTotalCapability();
|
||||||
isCapabilityChanged = true;
|
isCapabilityChanged = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user