YARN-8782. Fix exception message in Resource.throwExceptionWhenArrayOutOfBound. Contributed by Gergely Pollak.
This commit is contained in:
parent
33d8327cff
commit
9a265fa673
@ -397,7 +397,7 @@ public void setResourceValue(int index, long value)
|
|||||||
protected void throwExceptionWhenArrayOutOfBound(int index) {
|
protected void throwExceptionWhenArrayOutOfBound(int index) {
|
||||||
String exceptionMsg = String.format(
|
String exceptionMsg = String.format(
|
||||||
"Trying to access ResourceInformation for given index=%d. "
|
"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",
|
+ "configured resources in resource-types.xml",
|
||||||
index, ResourceUtils.getNumberOfKnownResourceTypes());
|
index, ResourceUtils.getNumberOfKnownResourceTypes());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user