anmolanmol1234 commented on code in PR #7496:
URL: https://github.com/apache/hadoop/pull/7496#discussion_r2020847806
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsHttpOperation.java:
##########
@@ -776,15 +777,16 @@ public
AbfsHttpOperationWithFixedResultForGetFileStatus(final URL url,
@Override
public String getResponseHeader(final String httpHeader) {
// Directories on FNS-Blob are identified by a special metadata header.
- if (httpHeader.equals(X_MS_META_HDI_ISFOLDER)) {
+ if (httpHeader.equalsIgnoreCase(X_MS_META_HDI_ISFOLDER)) {
return TRUE;
}
return EMPTY_STRING;
}
@Override
public Map<String, List<String>> getResponseHeaders() {
- return new HashMap<>();
+ return Collections.singletonMap(X_MS_META_HDI_ISFOLDER,
Review Comment:
Why are we adding this entry in the map for all getResponse header calls ?
--
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]