From f0e5651cf4affb9fd158fd2ae55ca89be9689a3e Mon Sep 17 00:00:00 2001 From: Weiwei Yang Date: Mon, 17 Sep 2018 22:15:24 +0800 Subject: [PATCH] YARN-8782. Fix exception message in Resource.throwExceptionWhenArrayOutOfBound. Contributed by Gergely Pollak. (cherry picked from commit 9a265fa673ef1b8774cfd69c76cdd29bf344e79d) --- .../main/java/org/apache/hadoop/yarn/api/records/Resource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java index 78a691be61a..634a1d8ec00 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java @@ -405,7 +405,7 @@ public abstract class Resource implements Comparable { 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());