anmolanmol1234 commented on code in PR #6025: URL: https://github.com/apache/hadoop/pull/6025#discussion_r1329972478
########## hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java: ########## @@ -1858,7 +1895,25 @@ public void storeEmptyLinkFile(String key, String tempBlobKey, CloudBlobWrapper blob = getBlobReference(key); storePermissionStatus(blob, permissionStatus); storeLinkAttribute(blob, tempBlobKey); - openOutputStream(blob).close(); + if (eTagCheck && eTag != null) { + AccessCondition accessCondition = new AccessCondition(); + accessCondition.setIfMatch(eTag); Review Comment: The storeEmptyLinkFile call is made for the original file and not the temp file. Hence if it is case of file overwrite it will have if-match eTag condition else if-none-match *. The check for temp file is done in storeFile method in AzureNativeFileSystemStore class -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org