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

Always try to close all channels in Selector#close

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: