-
Notifications
You must be signed in to change notification settings - Fork 117
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
Dispatcher logs ArrayIndexOutOfBoundsExceptions #813
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
Yep I think that's the issue, it's strange that unit tests didn't caught it... |
/assign |
slinkydeveloper
added a commit
to slinkydeveloper/eventing-kafka-broker
that referenced
this issue
Apr 16, 2021
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
knative-prow-robot
pushed a commit
that referenced
this issue
Apr 18, 2021
knative-prow-robot
pushed a commit
to knative-prow-robot/eventing-kafka-broker
that referenced
this issue
Apr 18, 2021
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
We should get a new 0.22 release that fixes this bug, thanks for the help! |
Thank you for fixing it :) |
knative-prow-robot
added a commit
that referenced
this issue
Apr 19, 2021
creydr
pushed a commit
to creydr/knative-eventing-kafka-broker
that referenced
this issue
Oct 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The logs for the Kafka broker dispatcher show a lot of ArrayIndexOutOfBoundsExceptions.
Expected behavior
No ArrayIndexOutOfBoundsExceptions
To Reproduce
Steps to reproduce the behavior.
Put a large-ish volume of events (1000s) through a broker + trigger, particularly if some of those
Knative release version
0.22
Additional context
UnorderedOffsetManager seems to try and make the array large enough to avoid this index out of bounds exception. I think it is just an off-by-one error - perhaps the check should be less-than-or-equal?
private void checkAcksArraySize(int blockIndex) { if (this.uncommitted.length < blockIndex) { // Let's make sure we create enough room for more unordered records this.uncommitted = Arrays.copyOf(this.uncommitted, (blockIndex + 1) * 2); } }
The text was updated successfully, but these errors were encountered: