[ 
https://issues.apache.org/jira/browse/KAFKA-1985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14337214#comment-14337214
 ] 

Jay Kreps commented on KAFKA-1985:
----------------------------------

Totally agree. The documentation for this should really go with the protocol 
description, though. All the other clients have the same issue we do only much 
worse because they may be less fluent in Java.

> Document on possible error codes for each response type
> -------------------------------------------------------
>
>                 Key: KAFKA-1985
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1985
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>            Reporter: Guozhang Wang
>             Fix For: 0.9.0
>
>
> When coding the clients logic we tend to forget one or more possible error 
> codes that needs special handling because it is not summarized and documented 
> anywhere. It would better to at least add comments in
> {code}
> org.apache.kafka.common.requests.XXResponse
> {code}
> about all possible error codes so that people can check and handle them 
> appropriately.



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

Reply via email to