HADOOP-17560. Fix some spelling errors (#2730)
Co-authored-by: jiaguodong5 <jiaguodong5@jd.com>
This commit is contained in:
parent
a17dc4e821
commit
8af56de1fa
|
@ -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(
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -1201,7 +1201,7 @@ public class TestRMWebServicesApps extends JerseyTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testAppsQueryWithInvaildDeselects()
|
||||
public void testAppsQueryWithInvalidDeselects()
|
||||
throws JSONException, Exception {
|
||||
try {
|
||||
rm.start();
|
||||
|
|
Loading…
Reference in New Issue