You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/25 08:36:00 UTC

[jira] [Commented] (KAFKA-7402) Kafka Streams should implement AutoCloseable where appropriate

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

ASF GitHub Bot commented on KAFKA-7402:
---------------------------------------

shunge opened a new pull request #5839: KAFKA-7402: Kafka Streams should implement AutoCloseable where approp…
URL: https://github.com/apache/kafka/pull/5839
 
 
   KAFKA-7402: Kafka Streams should implement AutoCloseable where appropriate.
   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
   
   ### Committer Checklist (excluded from commit message)
   - [X] Verify design and implementation 
   - [X] 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 GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Kafka Streams should implement AutoCloseable where appropriate
> --------------------------------------------------------------
>
>                 Key: KAFKA-7402
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7402
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>            Reporter: John Roesler
>            Assignee: Yishun Guan
>            Priority: Minor
>              Labels: needs-kip, newbie
>
> Various components in Streams have close methods but do not implement AutoCloseable. This means that they can't be used in try-with-resources blocks.
> Remedying that would simplify our tests and make life easier for users as well.
> KafkaStreams itself is a notable example of this, but we can take the opportunity to look for other components that make sense as AutoCloseable as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)