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

discardChannel should be released in MockSelector#completeSend

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: