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 is sending corrupt message at Kafka produce #1330

Open
bmaidics opened this issue Aug 16, 2024 · 0 comments
Open

Zilla is sending corrupt message at Kafka produce #1330

bmaidics opened this issue Aug 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bmaidics
Copy link
Contributor

bmaidics commented Aug 16, 2024

Describe the bug
Doing MQTT benchmark ocasionally triggers that Zilla sends corrupt data to Kafka.

[KafkaApi-1] Closing connection due to error during produce request with correlation id 171 from client id zilla with ack=0
kafka         | Topic and partition to exceptions: mqtt-messages-0 -> org.apache.kafka.common.errors.CorruptRecordException (kafka.server.KafkaApis)

To Reproduce
Steps to reproduce the behavior:

  1. Run Zilla locally with basic mqtt-kafka config and local Kafka
  2. Run emqtt benchark: ./emqtt_bench pub -h localhost -p 1883 -q 0 -c 100 -I 100 -L 50000 -t bench/%i
  3. Notice that the MQTT client gets disconnected with reason code 131 (Implementation specific error)
  4. This disconnect is sent due to a corrupt record being published to Kafka, and Kafka resets the connections
  5. In the Kafka logs you can observe the issue:
[KafkaApi-1] Closing connection due to error during produce request with correlation id 171 from client id zilla with ack=0
kafka         | Topic and partition to exceptions: mqtt-messages-0 -> org.apache.kafka.common.errors.CorruptRecordException (kafka.server.KafkaApis)

kafka_corrupt.zip

@bmaidics bmaidics added the bug Something isn't working label Aug 16, 2024
@jfallows jfallows transferred this issue from aklivity/zilla-plus-aws-templates Nov 15, 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

No branches or pull requests

1 participant