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:
parent
1642f06cd8
commit
0055e40226
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue