Trivial fix for minor refactor error for YARN-521

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1503543 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bikas Saha 2013-07-16 02:40:57 +00:00
parent 4466d8653f
commit 8f8be404a7
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ public abstract class AMRMClient<T extends AMRMClient.ContainerRequest> extends
Preconditions.checkArgument(containerCount > 0, Preconditions.checkArgument(containerCount > 0,
"The number of containers to request should larger than 0"); "The number of containers to request should larger than 0");
Preconditions.checkArgument( Preconditions.checkArgument(
(!relaxLocality && (racks == null || racks.length == 0) !(!relaxLocality && (racks == null || racks.length == 0)
&& (nodes == null || nodes.length == 0)), && (nodes == null || nodes.length == 0)),
"Can't turn off locality relaxation on a " + "Can't turn off locality relaxation on a " +
"request with no location constraints"); "request with no location constraints");