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:
parent
4466d8653f
commit
8f8be404a7
|
@ -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