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

[Consumer Group] Race condition while joining simultaneously to the same group id #542

Closed
akrambek opened this issue Oct 27, 2023 · 0 comments · Fixed by #543
Closed

[Consumer Group] Race condition while joining simultaneously to the same group id #542

akrambek opened this issue Oct 27, 2023 · 0 comments · Fixed by #543
Assignees
Labels
bug Something isn't working

Comments

@akrambek
Copy link
Contributor

The following exception gets triggered when 2 streams try to join with the same group id.

org.agrona.concurrent.AgentTerminationException: java.lang.IllegalArgumentException: offset=147021 length=1610612732 not valid for capacity=4195072
        at io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.DispatchAgent.doWork(DispatchAgent.java:707)
        at org.agrona.core/org.agrona.concurrent.AgentRunner.doDutyCycle(AgentRunner.java:291)
        at org.agrona.core/org.agrona.concurrent.AgentRunner.run(AgentRunner.java:164)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: offset=147021 length=1610612732 not valid for capacity=4195072
        at org.agrona.core/org.agrona.concurrent.UnsafeBuffer.boundsCheckWrap(UnsafeBuffer.java:1674)
        at org.agrona.core/org.agrona.concurrent.UnsafeBuffer.wrap(UnsafeBuffer.java:246)
        at io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.types.Array32FW.wrap(Array32FW.java:117)
        at io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.stream.KafkaCacheServerConsumerFactory$KafkaCacheServerConsumerFanout.onConsumerReplyData(KafkaCacheServerConsumerFactory.java:909)
        at io.aklivity.zilla.runtime.binding.kafka/io.aklivity.zilla.runtime.binding.kafka.internal.stream.KafkaCacheServerConsumerFactory$KafkaCacheServerConsumerFanout.onConsumerMessage(KafkaCacheServerConsumerFactory.java:799)
        at io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.DispatchAgent.handleReadReply(DispatchAgent.java:1244)
        at io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.DispatchAgent.handleRead(DispatchAgent.java:1045)
        at io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.concurent.ManyToOneRingBuffer.read(ManyToOneRingBuffer.java:181)
        at io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.DispatchAgent.doWork(DispatchAgent.java:701)
        ... 3 more
        Suppressed: java.lang.Exception: [engine/data#9]        [0x0909000000000104] streams=[consumeAt=0x00023e48 (0x0000000000023e48), produceAt=0x00023f08 (0x0000000000023f08)]
                at io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.DispatchAgent.doWork(DispatchAgent.java:705)
                ... 3 more
stopped
@akrambek akrambek added the bug Something isn't working label Oct 27, 2023
@akrambek akrambek self-assigned this Oct 27, 2023
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.

1 participant