You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2020/05/18 07:28:00 UTC
[jira] [Created] (KAFKA-10014) Always try to close all channels in
Selector#close
Chia-Ping Tsai created KAFKA-10014:
--------------------------------------
Summary: Always try to close all channels in Selector#close
Key: KAFKA-10014
URL: https://issues.apache.org/jira/browse/KAFKA-10014
Project: Kafka
Issue Type: Bug
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
{code:java}
public void close() {
List<String> connections = new ArrayList<>(channels.keySet());
try {
for (String id : connections)
close(id); // this line
} finally {
{code}
KafkaChannel has a lot of releasable objects so we ought to try to close all channels.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)