Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6716

discardChannel should be released in MockSelector#completeSend

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

          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);
          }
      

      The discardChannel should be closed before returning from the method

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                huxi_2b huxihx
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: