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

Gwen Shapira commented on KAFKA-1985:
-------------------------------------

Awesome awesome idea.

However, we should also document that this is not a guarantee - new error codes 
may appear in new releases with or without a protocol bump and clients must be 
able to handle unknown error codes gracefully.

> 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