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 / ";
|
"Invalid entry, all mount points must start with / ";
|
||||||
public static final String ERROR_MSG_NO_DEST_PATH_SPECIFIED =
|
public static final String ERROR_MSG_NO_DEST_PATH_SPECIFIED =
|
||||||
"Invalid entry, no destination paths 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 ";
|
"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 ";
|
"Invalid entry, invalid destination path ";
|
||||||
public static final String ERROR_MSG_ALL_DEST_MUST_START_WITH_BACK_SLASH =
|
public static final String ERROR_MSG_ALL_DEST_MUST_START_WITH_BACK_SLASH =
|
||||||
"Invalid entry, all destination must start with / ";
|
"Invalid entry, all destination must start with / ";
|
||||||
|
@ -394,11 +394,11 @@ public abstract class MountTable extends BaseRecord {
|
||||||
String nsId = loc.getNameserviceId();
|
String nsId = loc.getNameserviceId();
|
||||||
if (nsId == null || nsId.length() == 0) {
|
if (nsId == null || nsId.length() == 0) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
ERROR_MSG_INVAILD_DEST_NS + this);
|
ERROR_MSG_INVALID_DEST_NS + this);
|
||||||
}
|
}
|
||||||
if (loc.getDest() == null || loc.getDest().length() == 0) {
|
if (loc.getDest() == null || loc.getDest().length() == 0) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
ERROR_MSG_INVAILD_DEST_PATH + this);
|
ERROR_MSG_INVALID_DEST_PATH + this);
|
||||||
}
|
}
|
||||||
if (!loc.getDest().startsWith("/")) {
|
if (!loc.getDest().startsWith("/")) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
|
|
|
@ -266,7 +266,7 @@ public class TestMountTable {
|
||||||
fail("Mount table entry should be created failed.");
|
fail("Mount table entry should be created failed.");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
GenericTestUtils.assertExceptionContains(
|
GenericTestUtils.assertExceptionContains(
|
||||||
MountTable.ERROR_MSG_INVAILD_DEST_NS, e);
|
MountTable.ERROR_MSG_INVALID_DEST_NS, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
destinations.clear();
|
destinations.clear();
|
||||||
|
|
|
@ -1201,7 +1201,7 @@ public class TestRMWebServicesApps extends JerseyTestBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAppsQueryWithInvaildDeselects()
|
public void testAppsQueryWithInvalidDeselects()
|
||||||
throws JSONException, Exception {
|
throws JSONException, Exception {
|
||||||
try {
|
try {
|
||||||
rm.start();
|
rm.start();
|
||||||
|
|
Loading…
Reference in New Issue