[
https://issues.apache.org/jira/browse/KAFKA-14012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17556392#comment-17556392
]
Luke Chen commented on KAFKA-14012:
-----------------------------------
You're right, it will be NPE after passing in the "method" as parameter. Thanks
for correction. I've updated the JIRA.
> 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)