You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chris Egerton (Jira)" <ji...@apache.org> on 2022/06/20 13:33:00 UTC

[jira] [Commented] (KAFKA-14012) passing a "method" into the `Utils.closeQuietly` method cause a no-op call

    [ https://issues.apache.org/jira/browse/KAFKA-14012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17556384#comment-17556384 ] 

Chris Egerton commented on KAFKA-14012:
---------------------------------------

[~showuon] when does this no-op occur? The bugs that I've found related to {{Utils::closeQuietly}} have been NPEs caused by method references of null objects; I believe as long as the object is non-null and the correct method is referenced, things should go smoothly.

> passing a "method" into the `Utils.closeQuietly` method cause a no-op call
> --------------------------------------------------------------------------
>
>                 Key: KAFKA-14012
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14012
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 3.2.0
>            Reporter: Luke Chen
>            Priority: Major
>
> Utils.closeQuietly method accepts `AutoCloseable` object, and close it. But there are some places we passed "method" into Utils.closeQuietly, which causes the object doesn't get closed as expected. 
> I found it appeared in:
> - WorkerConnector
> - AbstractWorkerSourceTask
> - KafkaConfigBackingStore
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)