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/branches/branch-2@1536574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sanford Ryza 2013-10-29 00:57:03 +00:00
parent dd3e38280a
commit 67365f3172
3 changed files with 14 additions and 2 deletions

View File

@ -96,6 +96,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

View File

@ -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() {

View File

@ -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