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
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ public abstract class Resource implements Comparable<Resource> {
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());