chia7712 commented on a change in pull request #10024: URL: https://github.com/apache/kafka/pull/10024#discussion_r569277356
########## File path: core/src/test/scala/kafka/common/InterBrokerSendThreadTest.scala ########## @@ -51,6 +52,26 @@ class InterBrokerSendThreadTest { Some(queue.dequeue()) } } + override def pollOnce(maxTimeoutMs: Long): Unit = { + try super.pollOnce(maxTimeoutMs) + catch { + case e: Throwable => exceptionCallback(e) + } + } + + } + + @Test + def shutdownThreadShouldNotCauseException(): Unit = { Review comment: @ijuma Pardon me. I failed to catch your point. ```InterBrokerSendThreadTest.scala``` is a true test case and it seems to me the test make sure InterBrokerSendThreadTest does not throw fatal exception when it is shutdown correctly. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org