YARN-1109. Demote NodeManager "Sending out status for container" logs to debug (haosdent via Sandy Ryza)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1536573 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b48f44feb
commit
defa7af4d3
|
@ -114,6 +114,9 @@ Release 2.2.1 - UNRELEASED
|
|||
YARN-1333. Support blacklisting in the Fair Scheduler (Tsuyoshi Ozawa via
|
||||
Sandy Ryza)
|
||||
|
||||
YARN-1109. Demote NodeManager "Sending out status for container" logs to
|
||||
debug (haosdent via Sandy Ryza)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
|
|
@ -74,7 +74,14 @@ public class ContainerStatusPBImpl extends ContainerStatus {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return TextFormat.shortDebugString(getProto());
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("ContainerStatus: [");
|
||||
sb.append("ContainerId: ").append(getContainerId()).append(", ");
|
||||
sb.append("State: ").append(getState()).append(", ");
|
||||
sb.append("Diagnostics: ").append(getDiagnostics()).append(", ");
|
||||
sb.append("ExitStatus: ").append(getExitStatus()).append(", ");
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
private void mergeLocalToBuilder() {
|
||||
|
|
|
@ -341,7 +341,9 @@ public class NodeStatusUpdaterImpl extends AbstractService implements
|
|||
container.cloneAndGetContainerStatus();
|
||||
containersStatuses.add(containerStatus);
|
||||
++numActiveContainers;
|
||||
LOG.info("Sending out status for container: " + containerStatus);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Sending out status for container: " + containerStatus);
|
||||
}
|
||||
|
||||
if (containerStatus.getState() == ContainerState.COMPLETE) {
|
||||
// Remove
|
||||
|
|
Loading…
Reference in New Issue