yandrey321 commented on code in PR #9824:
URL: https://github.com/apache/ozone/pull/9824#discussion_r2854341518


##########
hadoop-hdds/test-utils/src/main/java/org/apache/ozone/test/JacocoServer.java:
##########
@@ -68,8 +75,10 @@ public static void main(String[] args) throws IOException {
               synchronizedCall(destination::visitSessionInfo));
           reader.setExecutionDataVisitor(
               synchronizedCall(destination::visitClassExecution));
-          while (reader.read()) {
-            ;//read until the end of the stream.
+          while (true) {

Review Comment:
   I'd keep the loop condition as is and add `Thread.yield()` in the body to 
get a chance to other thread to fill the buffer for the next read().



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