[
https://issues.apache.org/jira/browse/KAFKA-6204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17517651#comment-17517651
]
Xavier Léauté commented on KAFKA-6204:
--
this was mostly fixed by KIP-376
https://cwiki.apache.org/confluence/display/KAFKA/KIP-376%3A+Implement+AutoClosable+on+appropriate+classes+that+want+to+be+used+in+a+try-with-resource+statement
it looks like ProducerInterceptor might have been missed, so it should be
fairly uncontroversial to add it.
> Interceptor and MetricsReporter should implement java.io.Closeable
> --
>
> Key: KAFKA-6204
> URL: https://issues.apache.org/jira/browse/KAFKA-6204
> Project: Kafka
> Issue Type: Improvement
> Components: clients
>Reporter: Charly Molter
>Priority: Minor
>
> The serializers and deserializers extends the Closeable interface, even
> ConsumerInterceptors and ProducerInterceptors implement it.
> ConsumerInterceptor, ProducerInterceptor and MetricsReporter do not extend
> the Closeable interface.
> Maybe they should for coherency with the rest of the apis.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)