You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/03/26 18:24:00 UTC
[jira] [Created] (KAFKA-6716) discardChannel should be released in
MockSelector#completeSend
Ted Yu created KAFKA-6716:
-----------------------------
Summary: discardChannel should be released in MockSelector#completeSend
Key: KAFKA-6716
URL: https://issues.apache.org/jira/browse/KAFKA-6716
Project: Kafka
Issue Type: Test
Reporter: Ted Yu
{code}
private void completeSend(Send send) throws IOException {
// Consume the send so that we will be able to send more requests to the destination
ByteBufferChannel discardChannel = new ByteBufferChannel(send.size());
while (!send.completed()) {
send.writeTo(discardChannel);
}
completedSends.add(send);
}
{code}
The {{discardChannel}} should be closed before returning from the method
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)