confluentinc / confluent-kafka-dotnet

Confluent's Apache Kafka .NET client

Home Page:https://github.com/confluentinc/confluent-kafka-dotnet/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

APIVERSION_QUERY timeout

rashmiann opened this issue · comments

Hi,
We are facing apiversion query request failure after 2 hours of running producer client (first two hours everything runs smoothly) and then broker connection fails.
Producer client running on c5 large machine
kafka version used 2.8.1

Timed out ApiVersionRequest in flight (after 10129ms, timeout #0)
ApiVersionRequest failed: Local: Timed out: probably due to broker version < 0.10 (see api.version.request configuration) (after 10130ms in state APIVERSION_QUERY)
Local: Timed out: probably due to broker version < 0.10 (see api.version.request configuration) (after 10130ms in state APIVERSION_QUERY)
Timed out 1 in-flight, 0 retry-queued, 0 out-queue, 0 partially-sent requests
Timed out ApiVersionRequest in flight (after 10105ms, timeout #0)
failed: Unknown error (after 15402ms in state CONNECT)
failed: Unknown error (after 21354ms in state CONNECT)
Unknown error (after 15160ms in state CONNECT)
failed: Unknown error (after 15237ms in state CONNECT)

How to reproduce

Checklist

Please provide the following information:

  • A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
  • Confluent.Kafka nuget version.
  • Apache Kafka version.
  • Client configuration.
  • Operating system.
  • Provide logs (with "debug" : "..." as necessary in configuration).
  • Provide broker log excerpts.
  • Critical issue.

Was the broker reachable from the client? Can you also check the broker logs?

Hi @anchitj , I also faced the same issue. In my case, broker is reachable only.

@rashmiann Did you able to resolve this error?

Getting same error and after this Kafka client(Consumer code) not able to connect again, only option is to restart the pods(service).
Kindly let me know of there is any way to configure consumer code to re-initiates the connection

%4|1710193417.943|FAIL|rdkafka#consumer-9886| [thrd:sasl_ssl://brokeraddress.amazonaws.com]: sasl_ssl://b-3.msk-wbrokeraddress.amazonaws.com:9096/3: Connection setup timed out in state APIVERSION_QUERY (after 29924ms in state APIVERSION_QUERY, 1 identical error(s) suppressed)
%4|1710193447.946|FAIL|rdkafka#consumer-9886| [thrd:sasl_ssl://b-2.brokeraddress.amazonaws.com]: sasl_ssl://b-2.msk-wbroker.com:9096/2: Connection setup timed out in state APIVERSION_QUERY (after 29912ms in state APIVERSION_QUERY, 1 identical error(s) suppressed)

Please try to reproduce the issue with Debug="all" and upload the logs here.

Is this error solved, I am also facing the same when consuming messages from aws msk kafka