Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7402

Kafka Streams should implement AutoCloseable where appropriate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.0
    • streams

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              shung Yishun Guan
              vvcephei John Roesler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: