YARN-6073. Misuse of format specifier in Preconditions.checkArgument (Contributed by Yuanbo Liu via Daniel Templeton)
This commit is contained in:
parent
945db55f2e
commit
6332a318bc
|
@ -685,7 +685,7 @@ public class RMAdminCLI extends HAAdmin {
|
||||||
}
|
}
|
||||||
|
|
||||||
int nLabels = map.get(nodeId).size();
|
int nLabels = map.get(nodeId).size();
|
||||||
Preconditions.checkArgument(nLabels <= 1, "%d labels specified on host=%s"
|
Preconditions.checkArgument(nLabels <= 1, "%s labels specified on host=%s"
|
||||||
+ ", please note that we do not support specifying multiple"
|
+ ", please note that we do not support specifying multiple"
|
||||||
+ " labels on a single host for now.", nLabels, nodeIdStr);
|
+ " labels on a single host for now.", nLabels, nodeIdStr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue