HDFS-6503. Fix typo of DFSAdmin restoreFailedStorage. Contributed by Zesheng Wu.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1601958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
81bc395deb
commit
49fecbd402
@ -669,6 +669,9 @@ Release 2.5.0 - UNRELEASED
|
|||||||
HDFS-6364. Incorrect check for unknown datanode in Balancer. (Benoy
|
HDFS-6364. Incorrect check for unknown datanode in Balancer. (Benoy
|
||||||
Antony via Arpit Agarwal)
|
Antony via Arpit Agarwal)
|
||||||
|
|
||||||
|
HDFS-6503. Fix typo of DFSAdmin restoreFailedStorage.
|
||||||
|
(Zesheng Wu via wheat9)
|
||||||
|
|
||||||
Release 2.4.1 - UNRELEASED
|
Release 2.4.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -575,7 +575,7 @@ public int rollEdits() throws IOException {
|
|||||||
* @exception IOException
|
* @exception IOException
|
||||||
* @see org.apache.hadoop.hdfs.protocol.ClientProtocol#restoreFailedStorage(String arg)
|
* @see org.apache.hadoop.hdfs.protocol.ClientProtocol#restoreFailedStorage(String arg)
|
||||||
*/
|
*/
|
||||||
public int restoreFaileStorage(String arg) throws IOException {
|
public int restoreFailedStorage(String arg) throws IOException {
|
||||||
int exitCode = -1;
|
int exitCode = -1;
|
||||||
|
|
||||||
if(!arg.equals("check") && !arg.equals("true") && !arg.equals("false")) {
|
if(!arg.equals("check") && !arg.equals("true") && !arg.equals("false")) {
|
||||||
@ -1362,7 +1362,7 @@ public int run(String[] argv) throws Exception {
|
|||||||
} else if ("-rollEdits".equals(cmd)) {
|
} else if ("-rollEdits".equals(cmd)) {
|
||||||
exitCode = rollEdits();
|
exitCode = rollEdits();
|
||||||
} else if ("-restoreFailedStorage".equals(cmd)) {
|
} else if ("-restoreFailedStorage".equals(cmd)) {
|
||||||
exitCode = restoreFaileStorage(argv[i]);
|
exitCode = restoreFailedStorage(argv[i]);
|
||||||
} else if ("-refreshNodes".equals(cmd)) {
|
} else if ("-refreshNodes".equals(cmd)) {
|
||||||
exitCode = refreshNodes();
|
exitCode = refreshNodes();
|
||||||
} else if ("-finalizeUpgrade".equals(cmd)) {
|
} else if ("-finalizeUpgrade".equals(cmd)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user