adoroszlai commented on code in PR #12005:
URL: https://github.com/apache/ozone/pull/12005#discussion_r4540339040


##########
hadoop-ozone/cli-debug/src/main/java/org/apache/hadoop/ozone/debug/ldb/DBScanner.java:
##########
@@ -265,8 +265,7 @@ private boolean displayTable(ManagedRocksIterator iterator,
     while (iterator.get().isValid() && withinLimit(globalCount)) {
       String fileNameTarget = recordsPerFile > 0 ? fileName + "." + 
fileSuffix++ :
           fileName;
-      try (PrintWriter out = new PrintWriter(new BufferedWriter(
-          new PrintWriter(fileNameTarget, UTF_8.name())))) {
+      try (PrintStream out = new 
PrintStream(Files.newOutputStream(Paths.get(fileNameTarget)))) {

Review Comment:
   Thanks, updated.



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