Browse Source

HADOOP-17560. Fix some spelling errors (#2730)

Co-authored-by: jiaguodong5 <jiaguodong5@jd.com>
JJiaguodong 4 years ago
parent
commit
8af56de1fa

+ 4 - 4
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/records/MountTable.java

@@ -54,9 +54,9 @@ public abstract class MountTable extends BaseRecord {
       "Invalid entry, all mount points must start with / ";
   public static final String ERROR_MSG_NO_DEST_PATH_SPECIFIED =
       "Invalid entry, no destination paths specified ";
-  public static final String ERROR_MSG_INVAILD_DEST_NS =
+  public static final String ERROR_MSG_INVALID_DEST_NS =
       "Invalid entry, invalid destination nameservice ";
-  public static final String ERROR_MSG_INVAILD_DEST_PATH =
+  public static final String ERROR_MSG_INVALID_DEST_PATH =
       "Invalid entry, invalid destination path ";
   public static final String ERROR_MSG_ALL_DEST_MUST_START_WITH_BACK_SLASH =
       "Invalid entry, all destination must start with / ";
@@ -394,11 +394,11 @@ public abstract class MountTable extends BaseRecord {
       String nsId = loc.getNameserviceId();
       if (nsId == null || nsId.length() == 0) {
         throw new IllegalArgumentException(
-            ERROR_MSG_INVAILD_DEST_NS + this);
+            ERROR_MSG_INVALID_DEST_NS + this);
       }
       if (loc.getDest() == null || loc.getDest().length() == 0) {
         throw new IllegalArgumentException(
-            ERROR_MSG_INVAILD_DEST_PATH + this);
+            ERROR_MSG_INVALID_DEST_PATH + this);
       }
       if (!loc.getDest().startsWith("/")) {
         throw new IllegalArgumentException(

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/store/records/TestMountTable.java

@@ -266,7 +266,7 @@ public class TestMountTable {
       fail("Mount table entry should be created failed.");
     } catch (Exception e) {
       GenericTestUtils.assertExceptionContains(
-          MountTable.ERROR_MSG_INVAILD_DEST_NS, e);
+          MountTable.ERROR_MSG_INVALID_DEST_NS, e);
     }
 
     destinations.clear();

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesApps.java

@@ -1201,7 +1201,7 @@ public class TestRMWebServicesApps extends JerseyTestBase {
   }
 
   @Test
-  public void testAppsQueryWithInvaildDeselects()
+  public void testAppsQueryWithInvalidDeselects()
       throws JSONException, Exception {
     try {
       rm.start();