-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-19658. ABFS:Create and rename idempotency for FNS Blob #7914
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
base: trunk
Are you sure you want to change the base?
Conversation
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
AbfsRestOperation statusOp = null; | ||
try { | ||
// Check if the file already exists by calling GetPathStatus | ||
statusOp = getPathStatus(path, false, tracingContext, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case of override true, flow might come here with already a Head call done on path.
Can we avoid this head call in that case?
assumeHnsDisabled(); | ||
// Create a spy of AzureBlobFileSystemStore | ||
AzureBlobFileSystemStore store = Mockito.spy(fs.getAbfsStore()); | ||
assumeBlobServiceType(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can move all assume before any other statement
// Create a spy of AzureBlobFileSystem | ||
try (AzureBlobFileSystem fs = Mockito.spy( | ||
(AzureBlobFileSystem) FileSystem.newInstance(getRawConfiguration()))) { | ||
assumeHnsDisabled(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, move all assume to first few lines
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
This change introduces idempotency for create operation in the ABFS driver when using FNS-Blob. The update strengthens the client’s retry semantics to ensure that transient backend failures (e.g., HTTP 500) or ambiguous outcomes (where the client receives an error, but the operation has already succeeded on the service) are handled safely. This PR also includes test cases to validate the idempotency of rename operations.