You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jason Gustafson (Jira)" <ji...@apache.org> on 2020/06/10 19:25:00 UTC
[jira] [Resolved] (KAFKA-10014) Always try to close all channels in
Selector#close
[ https://issues.apache.org/jira/browse/KAFKA-10014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Gustafson resolved KAFKA-10014.
-------------------------------------
Resolution: Fixed
> 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
> Priority: Minor
>
> {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)