anmolanmol1234 commented on code in PR #7777: URL: https://github.com/apache/hadoop/pull/7777#discussion_r2213043323
########## hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AzureDFSIngressHandler.java: ########## @@ -178,13 +179,24 @@ protected synchronized AbfsRestOperation remoteFlush(final long offset, tracingContextFlush.setIngressHandler(DFS_FLUSH); tracingContextFlush.setPosition(String.valueOf(offset)); } + String fullBlobMd5 = computeFullBlobMd5(); LOG.trace("Flushing data at offset {} and path {}", offset, getAbfsOutputStream().getPath()); - return getClient() - .flush(getAbfsOutputStream().getPath(), offset, retainUncommitedData, - isClose, - getAbfsOutputStream().getCachedSasTokenString(), leaseId, - getAbfsOutputStream().getContextEncryptionAdapter(), - tracingContextFlush); + AbfsRestOperation op; + try { + op = getClient() + .flush(getAbfsOutputStream().getPath(), offset, retainUncommitedData, + isClose, + getAbfsOutputStream().getCachedSasTokenString(), leaseId, + getAbfsOutputStream().getContextEncryptionAdapter(), + tracingContextFlush, fullBlobMd5); + } catch (AbfsRestOperationException ex) { + LOG.error("Error in remote flush for path {} and offset {}", + getAbfsOutputStream().getPath(), offset, ex); + throw ex; + } finally { + getAbfsOutputStream().getFullBlobContentMd5().reset(); Review Comment: done -- 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