HADOOP-14512. WASB atomic rename should not throw exception if the file is neither in src nor in dst when doing the rename. Contributed by Duo Xu
(cherry picked from commit 325163f23f
)
This commit is contained in:
parent
182c3f8398
commit
7eee4fed89
|
@ -581,10 +581,12 @@ public class NativeAzureFileSystem extends FileSystem {
|
||||||
// The rename already finished, so do nothing.
|
// The rename already finished, so do nothing.
|
||||||
;
|
;
|
||||||
} else {
|
} else {
|
||||||
throw new IOException(
|
// HADOOP-14512
|
||||||
"Attempting to complete rename of file " + srcKey + "/" + fileName
|
LOG.warn(
|
||||||
+ " during folder rename redo, and file was not found in source "
|
"Attempting to complete rename of file " + srcKey + "/" + fileName
|
||||||
+ "or destination.");
|
+ " during folder rename redo, and file was not found in source "
|
||||||
|
+ "or destination " + dstKey + "/" + fileName + ". "
|
||||||
|
+ "This must mean the rename of this file has already completed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue