HADOOP-10902. Deletion of directories with snapshots will not output reason for trash move failure. Contributed by Stephen Chu.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1615171 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
45db4d204b
commit
0d66f1f19c
|
@ -466,6 +466,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
HADOOP-8069. Enable TCP_NODELAY by default for IPC. (Todd Lipcon via
|
HADOOP-8069. Enable TCP_NODELAY by default for IPC. (Todd Lipcon via
|
||||||
Arpit Agarwal)
|
Arpit Agarwal)
|
||||||
|
|
||||||
|
HADOOP-10902. Deletion of directories with snapshots will not output
|
||||||
|
reason for trash move failure. (Stephen Chu via wang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -118,7 +118,11 @@ class Delete {
|
||||||
} catch(FileNotFoundException fnfe) {
|
} catch(FileNotFoundException fnfe) {
|
||||||
throw fnfe;
|
throw fnfe;
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
throw new IOException(ioe.getMessage() + ". Consider using -skipTrash option", ioe);
|
String msg = ioe.getMessage();
|
||||||
|
if (ioe.getCause() != null) {
|
||||||
|
msg += ": " + ioe.getCause().getMessage();
|
||||||
|
}
|
||||||
|
throw new IOException(msg + ". Consider using -skipTrash option", ioe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
|
|
Loading…
Reference in New Issue