[
https://issues.apache.org/jira/browse/KAFKA-5595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16091282#comment-16091282
]
Rajini Sivaram commented on KAFKA-5595:
---------------------------------------
[~ijuma] [~hachikuji] I have to admit I didn't look much deeper into it
either. The scenario I was thinking of was where a slow broker closes a few
connections because it thinks they are idle. Some connections without port
reuse would show the log entry {{Attempting to send response via channel for
which there is no open connection}}. One connection where the port did get
reused will have a new channel. When the response to the older connection is
ready, it would get sent to the newer connection with a channel in selector.
And that would throw {{IllegalStateException}} if there is already a send
outstanding to the newer connection.
But I hadn't realized that there were 13K warnings. So I agree this is not the
scenario here.
> Illegal state in SocketServer; attempt to send with another send in progress
> ----------------------------------------------------------------------------
>
> Key: KAFKA-5595
> URL: https://issues.apache.org/jira/browse/KAFKA-5595
> Project: Kafka
> Issue Type: Bug
> Reporter: Jason Gustafson
>
> I have seen this a couple times, but I'm not sure the conditions associated
> with it.
> {code}
> java.lang.IllegalStateException: Attempt to begin a send operation with prior
> send operation still in progress.
> at
> org.apache.kafka.common.network.KafkaChannel.setSend(KafkaChannel.java:138)
> at org.apache.kafka.common.network.Selector.send(Selector.java:248)
> at kafka.network.Processor.sendResponse(SocketServer.scala:488)
> at kafka.network.Processor.processNewResponses(SocketServer.scala:466)
> at kafka.network.Processor.run(SocketServer.scala:431)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> Prior to this event, I see a lot of this message in the logs (always for the
> same connection id):
> {code}
> Attempting to send response via channel for which there is no open
> connection, connection id 7
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)