You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Joe Stein (JIRA)" <ji...@apache.org> on 2014/12/17 15:41:13 UTC

[jira] [Updated] (KAFKA-1822) Add "echo" request

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

Joe Stein updated KAFKA-1822:
-----------------------------
      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.



  was:

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.



    Fix Version/s: 0.8.3

> Add "echo" request
> ------------------
>
>                 Key: KAFKA-1822
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1822
>             Project: Kafka
>          Issue Type: Improvement
>          Components: core
>            Reporter: Gwen Shapira
>            Assignee: Gwen Shapira
>             Fix For: 0.8.3
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)