瀏覽代碼

YARN-3149. Fix typo in message for invalid application id. Contributed
by Bibin A Chundatt.

(cherry picked from commit b77ff37686e01b7497d3869fbc62789a5b123c0a)

Xuan 10 年之前
父節點
當前提交
096ba583fa

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -454,6 +454,9 @@ Release 2.7.0 - UNRELEASED
     YARN-3101. In Fair Scheduler, fix canceling of reservations for exceeding
     YARN-3101. In Fair Scheduler, fix canceling of reservations for exceeding
     max share (Anubhav Dhoot via Sandy Ryza)
     max share (Anubhav Dhoot via Sandy Ryza)
 
 
+    YARN-3149. Fix typo in message for invalid application id.
+    (Bibin A Chundatt via xgong)
+
 Release 2.6.0 - 2014-11-18
 Release 2.6.0 - 2014-11-18
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ConverterUtils.java

@@ -204,7 +204,7 @@ public class ConverterUtils {
     try {
     try {
       return toApplicationId(it);
       return toApplicationId(it);
     } catch (NumberFormatException n) {
     } catch (NumberFormatException n) {
-      throw new IllegalArgumentException("Invalid AppAttemptId: "
+      throw new IllegalArgumentException("Invalid ApplicationId: "
           + appIdStr, n);
           + appIdStr, n);
     }
     }
   }
   }