HADOOP-13861. Spelling errors in logging and exceptions for code. Contributed by Grant Sohn.
(cherry picked from commit7b988e8899
) Conflicts: hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/util/GF256.java hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/KDiag.java (cherry picked from commit6bd600eef2
)
This commit is contained in:
parent
1a7b2ab9bb
commit
092d0602c2
|
@ -258,7 +258,7 @@ public class ZKSignerSecretProvider extends RolloverSignerSecretProvider {
|
|||
} 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 class LocalDirAllocator {
|
|||
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 class CommandFormat {
|
|||
private static final long serialVersionUID = 0L;
|
||||
|
||||
public DuplicatedOptionException(String duplicatedOption) {
|
||||
super("option " + duplicatedOption + " already exsits!");
|
||||
super("option " + duplicatedOption + " already exists!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1789,7 +1789,7 @@ public class TFile {
|
|||
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 final class Utils {
|
|||
out.writeLong(n);
|
||||
return;
|
||||
default:
|
||||
throw new RuntimeException("Internel error");
|
||||
throw new RuntimeException("Internal error");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@ public class NetworkTopology {
|
|||
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 @@ public class NetworkTopology {
|
|||
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
|
||||
|
|
|
@ -151,7 +151,7 @@ public final class LocalJavaKeyStoreProvider extends
|
|||
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