confluent-kafka-dotnet
confluent-kafka-dotnet copied to clipboard
APIVERSION_QUERY timeout
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
Facing same issue on consumer: Connection setup timed out in state APIVERSION_QUERY
This problem is solved now, I have installed java 11.0.23 in C:\Java and after that registered the environment variables with the same path.
@darshanambre-gep , you can follow the same.
im getting the samue issue on some of my workers, it just random started happening on a few owrkers
running kafka in k8s , havent changed anything to kafka on the serverside past 6 months .
neither in my client apps that is related to kafka at all for some time
any idea whats going on ? and how to fix this issue ?