Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zilla KafkaGroup stream stuck on decoding FindCoordinatorResponse #1201

Closed
bmaidics opened this issue Aug 15, 2024 · 0 comments · Fixed by #1256
Closed

Zilla KafkaGroup stream stuck on decoding FindCoordinatorResponse #1201

bmaidics opened this issue Aug 15, 2024 · 0 comments · Fixed by #1256
Assignees
Labels
bug Something isn't working

Comments

@bmaidics
Copy link
Contributor

bmaidics commented Aug 15, 2024

Describe the bug
When performance testing QoS2 publish, after a while Zilla get's stuck on allowing MQTT clients to connect. We start the group stream from MQTT-Kafka, the KafkaClientGroupFactory sends the FindCoordinatorRequest, Kafka replies with the FindCoordinatorResponse, but we never decode that packet.

To Reproduce
Steps to reproduce the behavior:

  1. Run Zilla locally with basic mqtt-kafka broker config
  2. Run emqtt bench pub until the the benchmark hangs (you might need to stop and run multiple times):
    ./emqtt_bench pub -h localhost -p 1883 -q 2 -c 100 -I 10 -t bench/%i
  3. After that not even a simple connection is accepted by Zilla. Try:
    mosquitto_pub --url mqtt://localhost:1883/qos2 -V 5 -q 2 --message "QOS 2" -d -i "client-id"
  4. The client hangs until timeout

To further debug, put a breakpoint on these codes:
KafkaClientGroupFactory.ClusterClient#doEncodeFindCoordinatorRequest
KafkaClientGroupFactory#decodeFindCoordinatorResponse

Notice that decodeFindCoordinatorResponse is never called.
I've ran local Kafka (bitnami/kafka:3.5), after a zilla restart the issue is resolved.

@bmaidics bmaidics added the bug Something isn't working label Aug 15, 2024
@vordimous vordimous added needs_triage Unknowns need to be addressed and removed needs_triage Unknowns need to be addressed labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants