YARN-4991. Fix ContainerRequest Constructor to set nodelabelExpression correctly. (Bibin A Chundatt via asuresh)

This commit is contained in:
Arun Suresh 2016-04-25 23:26:21 -07:00
parent 5865fe2bf0
commit a5fed8bbfe
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@ public abstract class AMRMClient<T extends AMRMClient.ContainerRequest> extends
*/ */
public ContainerRequest(Resource capability, String[] nodes, String[] racks, public ContainerRequest(Resource capability, String[] nodes, String[] racks,
Priority priority, boolean relaxLocality, String nodeLabelsExpression) { Priority priority, boolean relaxLocality, String nodeLabelsExpression) {
this(capability, nodes, racks, priority, relaxLocality, null, this(capability, nodes, racks, priority, relaxLocality,
nodeLabelsExpression,
ExecutionType.GUARANTEED); ExecutionType.GUARANTEED);
} }