-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-19522 [branch-3.4]: ABFS: [FnsOverBlob] Rename Recovery Should Succeed When Marker File Exists with Destination Directory #7633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-19522 [branch-3.4]: ABFS: [FnsOverBlob] Rename Recovery Should Succeed When Marker File Exists with Destination Directory #7633
Conversation
… Marker File Exists with Destination Directory (apache#7559) Contributed by Manish Bhatt Reviewed by Anmol Asrani, Manika Joshi, Anuj Modi Signed off by Anuj Modi<anujmodi@apache.org>
🎊 +1 overall
This message was automatically generated. |
============================================================
|
JIRA: https://issues.apache.org/jira/browse/HADOOP-19522
On the blob endpoint, since rename is not a direct operation but a combination of two operations—copy and delete—in the case of directory rename, we first rename all the blobs that have the source prefix and, at the end, rename the source to the destination.
In the normal rename flow, renaming is not allowed if the destination already exists. However, in the case of recovery, there is a possibility that some files have already been renamed from the source to the destination. With the recent change (HADOOP-19474 ABFS: [FnsOverBlob] Listing Optimizations to avoid multiple iteration over list response. - ASF JIRA), where we create a marker if the path is implicit, rename recovery will fail at the end when it tries to rename the source to the destination after renaming all the files.
To fix this, while renaming the source to the destination, if we encounter an error indicating that the path already exists, we will suppress the error and mark the rename recovery as successful.