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

Kafka Streams should implement AutoCloseable where appropriate

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: streams
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: