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

KafkaClientProduceFactory.encodeCrc fails with negative newLimit #1315

Open
bmaidics opened this issue Oct 29, 2024 · 0 comments
Open

KafkaClientProduceFactory.encodeCrc fails with negative newLimit #1315

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

Comments

@bmaidics
Copy link
Contributor

To Reproduce
Steps to reproduce the behavior:

  1. Use emqx benchmark tool with Zilla mqtt-kafka broker example
  2. ./emqtt_bench pub -h localhost -p 1883 -q 0 -c 100 -I 10 -t bench/%i -L 100000
  3. You might need to execute the same command 10+ times to reproduce the crash
java.base/java.nio.Buffer.createLimitException(Buffer.java:395)
java.base/java.nio.Buffer.limit(Buffer.java:369)
java.base/java.nio.ByteBuffer.limit(ByteBuffer.java:1529)
java.base/java.nio.MappedByteBuffer.limit(MappedByteBuffer.java:330)
java.base/java.nio.MappedByteBuffer.limit(MappedByteBuffer.java:73)
io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.stream.KafkaClientProduceFactory$KafkaProduceStream$KafkaProduceClient.encodeCrc(KafkaClientProduceFactory.java:2014)
io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.stream.KafkaClientProduceFactory$KafkaProduceStream$KafkaProduceClient.doEncodeProduceRequest(KafkaClientProduceFactory.java:1939)
io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.stream.KafkaClientProduceFactory$KafkaProduceStream$KafkaProduceClient.doEncodeProduceRequestIfNecessary(KafkaClientProduceFactory.java:1858)
io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.stream.KafkaClientProduceFactory$KafkaProduceStream$KafkaProduceClient.doEncodeRequestIfNecessary(KafkaClientProduceFactory.java:1848)
io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.stream.KafkaClientProduceFactory$KafkaProduceStream$KafkaProduceClient.onNetworkWindow(KafkaClientProduceFactory.java:1466)
io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.stream.KafkaClientProduceFactory$KafkaProduceStream$KafkaProduceClient.onNetwork(KafkaClientProduceFactory.java:1305)
io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.handleReadInitial(EngineWorker.java:1300)
io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.handleRead(EngineWorker.java:1235)
io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.concurent.ManyToOneRingBuffer.read(ManyToOneRingBuffer.java:229)
io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.doWork(EngineWorker.java:843)
org.agrona.core/org.agrona.concurrent.AgentRunner.doWork(AgentRunner.java:304)
org.agrona.core/org.agrona.concurrent.AgentRunner.workLoop(AgentRunner.java:296)
org.agrona.core/org.agrona.concurrent.AgentRunner.run(AgentRunner.java:162)
java.base/java.lang.Thread.run(Thread.java:833)
java.lang.IllegalArgumentException: newLimit < 0: (-1763102846 < 0)
@bmaidics bmaidics added the bug Something isn't working label Oct 29, 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