HDFS-5111. Remove duplicated error message for snapshot commands when processing invalid arguments. Contributed by Jing Zhao.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1515895 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00afcdfd39
commit
9718fd4c72
|
@ -79,7 +79,7 @@ class SnapshotCommands extends FsCommand {
|
||||||
protected void processArguments(LinkedList<PathData> items)
|
protected void processArguments(LinkedList<PathData> items)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
super.processArguments(items);
|
super.processArguments(items);
|
||||||
if (exitCode != 0) { // check for error collecting paths
|
if (numErrors != 0) { // check for error collecting paths
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(items.size() == 1);
|
assert(items.size() == 1);
|
||||||
|
@ -119,7 +119,7 @@ class SnapshotCommands extends FsCommand {
|
||||||
protected void processArguments(LinkedList<PathData> items)
|
protected void processArguments(LinkedList<PathData> items)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
super.processArguments(items);
|
super.processArguments(items);
|
||||||
if (exitCode != 0) { // check for error collecting paths
|
if (numErrors != 0) { // check for error collecting paths
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert (items.size() == 1);
|
assert (items.size() == 1);
|
||||||
|
@ -160,7 +160,7 @@ class SnapshotCommands extends FsCommand {
|
||||||
protected void processArguments(LinkedList<PathData> items)
|
protected void processArguments(LinkedList<PathData> items)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
super.processArguments(items);
|
super.processArguments(items);
|
||||||
if (exitCode != 0) { // check for error collecting paths
|
if (numErrors != 0) { // check for error collecting paths
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Preconditions.checkArgument(items.size() == 1);
|
Preconditions.checkArgument(items.size() == 1);
|
||||||
|
|
|
@ -319,6 +319,9 @@ Release 2.1.1-beta - UNRELEASED
|
||||||
HDFS-2933. Improve DataNode Web UI Index Page. (Vivek Ganesan via
|
HDFS-2933. Improve DataNode Web UI Index Page. (Vivek Ganesan via
|
||||||
Arpit Agarwal)
|
Arpit Agarwal)
|
||||||
|
|
||||||
|
HDFS-5111. Remove duplicated error message for snapshot commands when
|
||||||
|
processing invalid arguments. (jing9)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
Loading…
Reference in New Issue