[ https://issues.apache.org/jira/browse/KAFKA-5785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismael Juma resolved KAFKA-5785. -------------------------------- Resolution: Duplicate KAFKA-5607 includes a fix for this. > Always close connection if KafkaChannel.setSend throws exception > ---------------------------------------------------------------- > > Key: KAFKA-5785 > URL: https://issues.apache.org/jira/browse/KAFKA-5785 > Project: Kafka > Issue Type: Bug > Reporter: Ismael Juma > Assignee: Ismael Juma > > The code is currently: > {code} > try { > channel.setSend(send); > } catch (CancelledKeyException e) { > this.failedSends.add(connectionId); > close(channel, false); > } > {code} > This is generally OK, but if another exception is thrown (typically due to a > bug), we leak the connection. -- This message was sent by Atlassian JIRA (v6.4.14#64029)