kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Israel Ekpo <israele...@gmail.com>
Subject Re: What's so special about 2,8,9,15,56,72 error codes?
Date Wed, 28 Apr 2021 15:12:24 GMT
https://kafka.apache.org/protocol.html#protocol_error_codes

According to the documentation, those numeric codes are special because
they are used within the Kafka protocol to indicate problems that are
observed at the server.

These special numeric codes can be translated by the client into exceptions
or whatever the appropriate error handling mechanism in the client language.

Unless you are implementing or maintaining a client library that interacts
with the server using the Kafka protocol, you do not have to be concerned
with those codes.

Your client library should understand the protocol and throw the
appropriate exception/error condition while in use.

See the following examples of how these errors are handled at the clients:
https://kafka.apache.org/28/javadoc/org/apache/kafka/common/errors/package-summary.html
https://github.com/confluentinc/confluent-kafka-dotnet/blob/master/src/Confluent.Kafka/ErrorCode.cs
https://github.com/edenhill/librdkafka/blob/master/src/rdkafka_error.h
https://github.com/confluentinc/confluent-kafka-python/blob/master/src/confluent_kafka/error.py
https://kafka.apache.org/protocol.html#protocol_error_codes



On Wed, Apr 28, 2021 at 10:07 AM Men Lim <zulu208@gmail.com> wrote:

> that article linked to apache error code, which tells you their meaning.
>
> https://kafka.apache.org/protocol.html#protocol_error_codes
>
> On Wed, Apr 28, 2021 at 6:44 AM Nikita Kretov <kretov995@gmail.com> wrote:
>
> > I'm doing little research about what metrics and formulas used to
> > calculate SLA for kafka clusters. I found that some of major cloud
> > providers offer managed kafka solutions. for example - aws msk (Amazon
> > Managed Streaming for Apache Kafka)
> >
> > Interestingly, aws msk SLA document defines ``Error``` as ```...any
> > Apache Kafka API Request that returns the 2, 8, 9, 15, 56, 72 error
> > codes, or an Apache Kafka API Request that upon retry returns the 19 and
> > 20 error codes as described in the Apache Kafka site...``` (from
> > https://aws.amazon.com/msk/sla/ )
> > So my question is - Does someone know what's so special about this
> > specific error codes ?
> >
> > Thank you.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message