瀏覽代碼

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

Weiwei Yang 6 年之前
父節點
當前提交
9a265fa673

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java

@@ -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());