anujmodi2021 commented on code in PR #6069: URL: https://github.com/apache/hadoop/pull/6069#discussion_r1332692105
########## hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java: ########## @@ -761,6 +764,11 @@ public AbfsRestOperation append(final String path, final byte[] buffer, requestHeaders.add(new AbfsHttpHeader(USER_AGENT, userAgentRetry)); } + // Add MD5 Hash of request content as request header if feature is enabled + if (isChecksumValidationEnabled()) { Review Comment: Yes, server retrurned exception message clearly states that MD5 Hash does not match. Example: Operation failed: "The MD5 value specified in the request did not match with the MD5 value calculated by the server.", 400, PUT,<URL>, Md5Mismatch, "The MD5 value specified in the request did not match with the MD5 value calculated by the server. RequestId:<activityId> Time:2023-09-21T08:33:25.6135970Z" But if an invalid MD5 Hash is sent (Which does not represent any data), server message will be: Operation failed: "The value for one of the HTTP headers is not in the correct format.", 400, PUT, <URL>, InvalidHeaderValue, "The value for one of the HTTP headers is not in the correct format. RequestId:<rID> Time:2023-09-21T08:35:29.2777203Z" -- 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