You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ismael Juma (JIRA)" <ji...@apache.org> on 2017/09/01 15:36:01 UTC
[jira] [Updated] (KAFKA-5785) Always close connection if
KafkaChannel.setSend throws exception
[ https://issues.apache.org/jira/browse/KAFKA-5785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismael Juma updated KAFKA-5785:
-------------------------------
Fix Version/s: (was: 1.0.0)
> 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)