kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manikumar (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-6716) discardChannel should be released in MockSelector#completeSend
Date Tue, 03 Apr 2018 06:45:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Manikumar resolved KAFKA-6716.
------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

> 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
>            Assignee: huxihx
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> {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)

Mime
View raw message