GAOJHIHCYUAN commented on code in PR #4066:
URL: https://github.com/apache/ozone/pull/4066#discussion_r1055113118


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/keys/GetKeyHandler.java:
##########
@@ -90,7 +90,7 @@ protected void execute(OzoneClient client, OzoneAddress 
address)
 
     if (isVerbose() && !"/dev/null".equals(dataFile.getAbsolutePath())) {
       try (InputStream stream = new FileInputStream(dataFile)) {
-        String hash = DigestUtils.md5Hex(stream);
+        String hash = DigestUtils.sha256Hex(stream);
         out().printf("Downloaded file hash : %s%n", hash);

Review Comment:
   I had another PR in #4106
   including the hash type in terminal output.



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

Reply via email to