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:
parent
ee007d3f38
commit
39ec437268
|
@ -143,6 +143,9 @@ Release 2.0.3-alpha - Unreleased
|
|||
YARN-271. Fair scheduler hits IllegalStateException trying to reserve
|
||||
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
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -61,5 +61,10 @@ public class PriorityPBImpl extends Priority {
|
|||
maybeInitBuilder();
|
||||
builder.setPriority((priority));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Integer.valueOf(getPriority()).toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -198,6 +198,11 @@ public class RMContainerImpl implements RMContainer {
|
|||
return reservedPriority;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return containerId.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handle(RMContainerEvent event) {
|
||||
LOG.debug("Processing " + event.getContainerId() + " of type " + event.getType());
|
||||
|
@ -221,7 +226,7 @@ public class RMContainerImpl implements RMContainer {
|
|||
writeLock.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static class BaseTransition implements
|
||||
SingleArcTransition<RMContainerImpl, RMContainerEvent> {
|
||||
|
||||
|
|
Loading…
Reference in New Issue