YARN-385. 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/trunk@1443702 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Siddharth Seth 2013-02-07 20:28:20 +00:00
parent bdfe23235e
commit 362da383fd
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,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() + "}";
}
}