We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e203a59 commit 0855937Copy full SHA for 0855937
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
@@ -1066,6 +1066,9 @@ public int doWork() throws IOException {
1066
conf.getInt(CONF_COPY_MANIFEST_THREADS, DEFAULT_COPY_MANIFEST_THREADS));
1067
copySucceeded = true;
1068
} catch (IOException e) {
1069
+ if (outputFs.exists(initialOutputSnapshotDir)) {
1070
+ outputFs.delete(initialOutputSnapshotDir, true);
1071
+ }
1072
throw new ExportSnapshotException("Failed to copy the snapshot directory: from=" + snapshotDir
1073
+ " to=" + initialOutputSnapshotDir, e);
1074
} finally {
0 commit comments