danepitkin commented on code in PR #40786:
URL: https://github.com/apache/arrow/pull/40786#discussion_r1552210444


##########
java/memory/memory-netty/src/test/java/org/apache/arrow/memory/netty/TestNettyAllocator.java:
##########
@@ -69,9 +69,12 @@ public void testMemoryUsage() {
           break;
         }
       }
-      assertTrue("Log messages are:\n" +
+      synchronized (memoryLogsAppender.list) {
+        assertTrue("Log messages are:\n" +
               
memoryLogsAppender.list.stream().map(ILoggingEvent::toString).collect(Collectors.joining("\n")),
-          result);
+            result);
+      }
+

Review Comment:
   This was added to fix this bug that appeared in CI 
https://github.com/apache/arrow/actions/runs/8556425644/job/23446209816?pr=40786



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

Reply via email to