[ https://issues.apache.org/jira/browse/KAFKA-18100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17901370#comment-17901370 ]
TengYao Chi commented on KAFKA-18100: ------------------------------------- Hello [~jolshan] I will take a look and fix this issue. :) > `Using` block suppresses all errors > ----------------------------------- > > Key: KAFKA-18100 > URL: https://issues.apache.org/jira/browse/KAFKA-18100 > Project: Kafka > Issue Type: Bug > Reporter: Justine Olshan > Priority: Major > > [https://github.com/apache/kafka/pull/15881] changed our tests to utilize > `using` blocks. But these blocks don't throw any errors, so if there is a > failed assertion within the block, the test will still pass. > We should either check the failure using a corresponding `match` block with > Success(_) and Failure(e), use `using.resource`, or use try/finally blocks to > clean up resources. > See [https://www.scala-lang.org/api/3.0.2/scala/util/Using$.html] ** -- This message was sent by Atlassian Jira (v8.20.10#820010)