YARN-272. Fair scheduler log messages try to print objects without overridden toString methods. (sandyr via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1424984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2012-12-21 16:01:48 +00:00
parent ee007d3f38
commit 39ec437268
3 changed files with 14 additions and 1 deletions

View File

@ -143,6 +143,9 @@ Release 2.0.3-alpha - Unreleased
YARN-271. Fair scheduler hits IllegalStateException trying to reserve YARN-271. Fair scheduler hits IllegalStateException trying to reserve
different apps on same node. (Sandy Ryza via tomwhite) different apps on same node. (Sandy Ryza via tomwhite)
YARN-272. Fair scheduler log messages try to print objects without
overridden toString methods. (sandyr via tucu)
Release 2.0.2-alpha - 2012-09-07 Release 2.0.2-alpha - 2012-09-07
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -61,5 +61,10 @@ public class PriorityPBImpl extends Priority {
maybeInitBuilder(); maybeInitBuilder();
builder.setPriority((priority)); builder.setPriority((priority));
} }
@Override
public String toString() {
return Integer.valueOf(getPriority()).toString();
}
} }

View File

@ -198,6 +198,11 @@ public class RMContainerImpl implements RMContainer {
return reservedPriority; return reservedPriority;
} }
@Override
public String toString() {
return containerId.toString();
}
@Override @Override
public void handle(RMContainerEvent event) { public void handle(RMContainerEvent event) {
LOG.debug("Processing " + event.getContainerId() + " of type " + event.getType()); LOG.debug("Processing " + event.getContainerId() + " of type " + event.getType());
@ -221,7 +226,7 @@ public class RMContainerImpl implements RMContainer {
writeLock.unlock(); writeLock.unlock();
} }
} }
private static class BaseTransition implements private static class BaseTransition implements
SingleArcTransition<RMContainerImpl, RMContainerEvent> { SingleArcTransition<RMContainerImpl, RMContainerEvent> {