TaiJuWu opened a new pull request, #17970:
URL: https://github.com/apache/kafka/pull/17970

   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
   
   Co-authored-by: frankvicky <kiting...@gmail.com>
   
   Reviewers: Chia-Ping Tsai <chia7...@gmail.com>
   
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to