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
This commit is contained in:
parent
99634d10ed
commit
325163f23f
@ -611,10 +611,12 @@ private void finishSingleFileRename(String fileName)
|
||||
// The rename already finished, so do nothing.
|
||||
;
|
||||
} else {
|
||||
throw new IOException(
|
||||
"Attempting to complete rename of file " + srcKey + "/" + fileName
|
||||
+ " during folder rename redo, and file was not found in source "
|
||||
+ "or destination.");
|
||||
// HADOOP-14512
|
||||
LOG.warn(
|
||||
"Attempting to complete rename of file " + srcKey + "/" + fileName
|
||||
+ " 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
Block a user