anmolanmol1234 commented on code in PR #6025:
URL: https://github.com/apache/hadoop/pull/6025#discussion_r1318632229
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java:
##########
@@ -1242,7 +1242,10 @@ public void setEncodedKey(String anEncodedKey) {
* when the stream is closed.
*/
private void restoreKey() throws IOException {
- store.rename(getEncodedKey(), getKey());
+ String key = getKey();
+ FileMetadata existingMetadata = store.retrieveMetadata(key);
Review Comment:
I did the eTag setting in the earlier iteration by passing down the
initially fetched eTag and it results in 412 error. Hence an additional HEAD
call would be needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]