[
https://issues.apache.org/jira/browse/HADOOP-19604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18007746#comment-18007746
]
ASF GitHub Bot commented on HADOOP-19604:
-----------------------------------------
anmolanmol1234 commented on code in PR #7777:
URL: https://github.com/apache/hadoop/pull/7777#discussion_r2212651469
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AzureIngressHandler.java:
##########
@@ -206,4 +208,32 @@ protected InvalidIngressServiceException
getIngressHandlerSwitchException(
* @return the block manager
*/
public abstract AbfsClient getClient();
+
+ /**
+ * Computes the Base64-encoded MD5 hash of the full blob content.
+ *
+ * <p>This method clones the current state of the {@link MessageDigest}
instance
+ * associated with the blob content to avoid resetting its original state.
It then
+ * calculates the MD5 digest and encodes it into a Base64 string.</p>
+ *
+ * @return A Base64-encoded string representing the MD5 hash of the full
blob content,
+ * or {@code null} if the digest could not be computed.
+ */
+ protected String computeFullBlobMd5() {
Review Comment:
yes testFlushSuccessWithConnectionResetOnResponseValidMd5 and
testFlushSuccessWithConnectionResetOnResponseInvalidMd5 test this new code
> ABFS: Fix WASB ABFS compatibility issues
> ----------------------------------------
>
> Key: HADOOP-19604
> URL: https://issues.apache.org/jira/browse/HADOOP-19604
> Project: Hadoop Common
> Issue Type: Sub-task
> Affects Versions: 3.4.1
> Reporter: Anmol Asrani
> Assignee: Anmol Asrani
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.4.1
>
>
> Fix WASB ABFS compatibility issues. Fix issues such as:-
> # BlockId computation to be consistent across clients for PutBlock and
> PutBlockList
> # Restrict url encoding of certain json metadata during setXAttr calls.
> # Maintain the md5 hash of whole block to validate data integrity during
> flush.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]