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



-- 
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

Reply via email to