Skip to content

Commit 7f9dfa4

Browse files
committed
Recovery to be attempted even for rename parent path not found
1 parent aec848c commit 7f9dfa4

File tree

1 file changed

+2
-0
lines changed
  • hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services

1 file changed

+2
-0
lines changed

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ public AbfsClientRenameResult renamePath(
601601
//Logging
602602
ABFS_METADATA_INCOMPLETE_RENAME_FAILURE
603603
.info("Rename Failure attempting to resolve tracking metadata state and retrying.");
604+
// rename recovery should be attempted in this case also
605+
shouldAttemptRecovery = true;
604606
String sourceEtagAfterFailure = sourceEtag;
605607
if (isEmpty(sourceEtagAfterFailure)) {
606608
// Doing a HEAD call resolves the incomplete metadata state and

0 commit comments

Comments
 (0)