You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/07/18 05:11:57 UTC
[GitHub] [kafka] ijuma commented on a diff in pull request #12416: KAFKA-13559: Fix issue where responses intermittently takes 300+ ms to respond, even when the server is idle.
ijuma commented on code in PR #12416:
URL: https://github.com/apache/kafka/pull/12416#discussion_r922975981
##########
clients/src/main/java/org/apache/kafka/common/network/Selector.java:
##########
@@ -652,6 +652,11 @@ void write(KafkaChannel channel) throws IOException {
if (send != null) {
this.completedSends.add(send);
this.sensors.recordCompletedSend(nodeId, send.size(), currentTimeMs);
+
+ // To fix KAFKA-13559, i.e. select(timeout) blocks for 300 ms when the socket has no data but the buffer
+ // has data. Only happens when using SSL.
+ if (channel.hasBytesBuffered())
+ madeReadProgressLastPoll = true;
Review Comment:
It's weird to change this read related variable after we have done a write.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org