sadanand48 commented on code in PR #7861:
URL: https://github.com/apache/ozone/pull/7861#discussion_r1952865884


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis_snapshot/OmRatisSnapshotProvider.java:
##########
@@ -165,8 +166,27 @@ public void downloadSnapshot(String leaderNodeID, File 
targetFile)
             omCheckpointUrl + ". ErrorCode: " + errorCode);
       }
 
-      try (InputStream inputStream = connection.getInputStream()) {
-        FileUtils.copyInputStreamToFile(inputStream, targetFile);
+      try (InputStream inputStream = connection.getInputStream();
+           FileOutputStream outputStream = new FileOutputStream(targetFile)) {

Review Comment:
   nit : we can extract this logic to a util method



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