slfan1989 commented on code in PR #5905:
URL: https://github.com/apache/hadoop/pull/5905#discussion_r1278475208
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/DecommissioningNodesWatcher.java:
##########
@@ -221,10 +227,14 @@ public enum DecommissioningNodeStatus {
// The node has already been decommissioned
DECOMMISSIONED,
+
+ // wait for possibility of scheduled AM containers
+ WAIT_SCHEDULED_APPS
}
public boolean checkReadyToBeDecommissioned(NodeId nodeId) {
DecommissioningNodeStatus s = checkDecommissioningStatus(nodeId);
+ LOG.debug("checkReadyToBeDecommissioned " + nodeId + " status " + s);
Review Comment:
We use {} instead of +
```
LOG.debug("checkReadyToBeDecommissioned {} status {}.", nodeId, s);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]