merge YARN-385 from trunk. Add missing fields - location and #containers to ResourceRequestPBImpl's toString(). Contributed by Sandy Ryza.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1443704 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Siddharth Seth 2013-02-07 20:29:15 +00:00
parent 035d367933
commit 41c3449751
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,9 @@ Release 2.0.4-beta - UNRELEASED
YARN-383. AMRMClientImpl should handle null rmClient in stop()
(Hitesh Shah via sseth)
YARN-385. Add missing fields - location and #containers to
ResourceRequestPBImpl's toString(). (Sandy Ryza via sseth)
Release 2.0.3-alpha - 2013-02-06
INCOMPATIBLE CHANGES

View File

@ -166,6 +166,7 @@ public class ResourceRequestPBImpl extends ResourceRequest {
@Override
public String toString() {
return "{Priority: " + getPriority() + ", Capability: " + getCapability()
+ "}";
+ ", # Containers: " + getNumContainers()
+ ", Location: " + getHostName() + "}";
}
}