YARN-6073. Misuse of format specifier in Preconditions.checkArgument (Contributed by Yuanbo Liu via Daniel Templeton)

This commit is contained in:
Daniel Templeton 2017-01-09 22:12:58 -08:00
parent 945db55f2e
commit 6332a318bc

View File

@ -685,7 +685,7 @@ private Map<NodeId, Set<String>> buildNodeLabelsMapFromStr(String args) {
} }
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);
} }