Trivial fix for minor refactor error for YARN-521

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1503922 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bikas Saha 2013-07-16 22:15:47 +00:00
parent 1642f06cd8
commit 0055e40226
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,
"The number of containers to request should larger than 0");
Preconditions.checkArgument(
(!relaxLocality && (racks == null || racks.length == 0)
!(!relaxLocality && (racks == null || racks.length == 0)
&& (nodes == null || nodes.length == 0)),
"Can't turn off locality relaxation on a " +
"request with no location constraints");