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

Always try to close all channels in Selector#close

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None

    Description

          public void close() {
              List<String> connections = new ArrayList<>(channels.keySet());
              try {
                  for (String id : connections)
                      close(id); // this line
              } finally {
      

      KafkaChannel has a lot of releasable objects so we ought to try to close all channels.

      Attachments

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: