[ 
https://issues.apache.org/jira/browse/KAFKA-18100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai resolved KAFKA-18100.
------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

> `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
>            Assignee: Chia-Ping Tsai
>            Priority: Major
>             Fix For: 4.0.0
>
>
> [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)

Reply via email to