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

Add "echo" request

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • 0.9.0.0
    • core
    • None

    Description

      Currently there is no simple way to generate a request and validate we receive a response without adding a lot of dependencies for the test.
      Kafka request classes have quite a few dependencies, so they are not really usable when testing infrastructure components or clients.
      Generating a byte-array with meaningless request key id as it is done in SocketServerTest results in unknown request exception that must be handled.

      I suggest adding an EchoRequest, EchoResponse and EchoHandler. The Request will be the usual header and a bytearray. The Response will be a response header and the same bytearray echoed back.

      Should be useful for client developers and when testing infrastructure changes.

      Attachments

        Activity

          People

            gwenshap Gwen Shapira
            gwenshap Gwen Shapira
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: