HADOOP-13861. Spelling errors in logging and exceptions for code. Contributed by Grant Sohn.
This commit is contained in:
parent
08a7253bc0
commit
7b988e8899
@ -258,7 +258,7 @@ private synchronized void pushToZK(byte[] newSecret, byte[] currentSecret,
|
||||
} catch (KeeperException.BadVersionException bve) {
|
||||
LOG.debug("Unable to push to znode; another server already did it");
|
||||
} catch (Exception ex) {
|
||||
LOG.error("An unexpected exception occured pushing data to ZooKeeper",
|
||||
LOG.error("An unexpected exception occurred pushing data to ZooKeeper",
|
||||
ex);
|
||||
}
|
||||
}
|
||||
|
@ -525,7 +525,7 @@ public Path next() {
|
||||
try {
|
||||
advance();
|
||||
} catch (IOException ie) {
|
||||
throw new RuntimeException("Can't check existance of " + next, ie);
|
||||
throw new RuntimeException("Can't check existence of " + next, ie);
|
||||
}
|
||||
if (result == null) {
|
||||
throw new NoSuchElementException();
|
||||
|
@ -248,7 +248,7 @@ public static class DuplicatedOptionException extends IllegalArgumentException {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
public DuplicatedOptionException(String duplicatedOption) {
|
||||
super("option " + duplicatedOption + " already exsits!");
|
||||
super("option " + duplicatedOption + " already exists!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -221,7 +221,7 @@ public static void gfInvertMatrix(byte[] inMatrix, byte[] outMatrix, int n) {
|
||||
}
|
||||
if (j == n) {
|
||||
// Couldn't find means it's singular
|
||||
throw new RuntimeException("Not invertble");
|
||||
throw new RuntimeException("Not invertible");
|
||||
}
|
||||
|
||||
for (int k = 0; k < n; k++) {
|
||||
|
@ -1789,7 +1789,7 @@ public int getKey(byte[] buf) throws IOException {
|
||||
public int getKey(byte[] buf, int offset) throws IOException {
|
||||
if ((offset | (buf.length - offset - klen)) < 0) {
|
||||
throw new IndexOutOfBoundsException(
|
||||
"Bufer not enough to store the key");
|
||||
"Buffer not enough to store the key");
|
||||
}
|
||||
System.arraycopy(keyBuffer, 0, buf, offset, klen);
|
||||
return klen;
|
||||
|
@ -153,7 +153,7 @@ public static void writeVLong(DataOutput out, long n) throws IOException {
|
||||
out.writeLong(n);
|
||||
return;
|
||||
default:
|
||||
throw new RuntimeException("Internel error");
|
||||
throw new RuntimeException("Internal error");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,7 +169,7 @@ boolean add(Node n) {
|
||||
if (!isAncestor(n)) {
|
||||
throw new IllegalArgumentException(n.getName()
|
||||
+ ", which is located at " + n.getNetworkLocation()
|
||||
+ ", is not a descendent of " + getPath(this));
|
||||
+ ", is not a descendant of " + getPath(this));
|
||||
}
|
||||
if (isParent(n)) {
|
||||
// this node is the parent of n; add n directly
|
||||
@ -231,7 +231,7 @@ boolean remove(Node n) {
|
||||
if (!isAncestor(n)) {
|
||||
throw new IllegalArgumentException(n.getName()
|
||||
+ ", which is located at " + n.getNetworkLocation()
|
||||
+ ", is not a descendent of " + getPath(this));
|
||||
+ ", is not a descendant of " + getPath(this));
|
||||
}
|
||||
if (isParent(n)) {
|
||||
// this node is the parent of n; remove n directly
|
||||
|
@ -593,7 +593,7 @@ private void dumpKeytab(File keytabFile) throws IOException {
|
||||
|
||||
Keytab loadKeytab = Keytab.loadKeytab(kt);
|
||||
List<PrincipalName> principals = loadKeytab.getPrincipals();
|
||||
println("keytab princial count: %d", principals.size());
|
||||
println("keytab principal count: %d", principals.size());
|
||||
int entrySize = 0;
|
||||
for (PrincipalName princ : principals) {
|
||||
List<KeytabEntry> entries = loadKeytab.getKeytabEntries(princ);
|
||||
|
@ -151,7 +151,7 @@ protected void initFileSystem(URI uri)
|
||||
public void flush() throws IOException {
|
||||
super.flush();
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Reseting permissions to '" + permissions + "'");
|
||||
LOG.debug("Resetting permissions to '" + permissions + "'");
|
||||
}
|
||||
if (!Shell.WINDOWS) {
|
||||
Files.setPosixFilePermissions(Paths.get(file.getCanonicalPath()),
|
||||
|
Loading…
Reference in New Issue
Block a user