lhotari commented on issue #25081:
URL: https://github.com/apache/pulsar/issues/25081#issuecomment-3673896275

   > 1. The process is fine, but the logAppender do not output the log 
information.
   
   @TakaHiR07 This is most likely the root cause. The appender is using an 
ArrayList to capture the events. That's not thread safe. I'd suggesting 
switching to use 
[org.apache.pulsar.utils.TestLogAppender](https://github.com/apache/pulsar/blob/master/pulsar-broker/src/test/java/org/apache/pulsar/utils/TestLogAppender.java#L39)
 for capturing the events. There's a usage example in another test:
   
https://github.com/apache/pulsar/blob/43f75dfa86fdaa44adf58ba0d78f959279f7cd29/pulsar-broker/src/test/java/org/apache/pulsar/client/api/MultiTopicsConsumerTest.java#L500-L514
   
   


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