YARN-8782. Fix exception message in Resource.throwExceptionWhenArrayOutOfBound. Contributed by Gergely Pollak.

This commit is contained in:
Weiwei Yang 2018-09-17 22:15:24 +08:00
parent 33d8327cff
commit 9a265fa673

View File

@ -397,7 +397,7 @@ public void setResourceValue(int index, long value)
protected void throwExceptionWhenArrayOutOfBound(int index) {
String exceptionMsg = String.format(
"Trying to access ResourceInformation for given index=%d. "
+ "Acceptable index range is [0,%d), please check double check "
+ "Acceptable index range is [0,%d), please double check "
+ "configured resources in resource-types.xml",
index, ResourceUtils.getNumberOfKnownResourceTypes());