-
Notifications
You must be signed in to change notification settings - Fork 893
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
ArrayIndexOutOfBoundsException on ConcurrentLongHashMap if autoshrink is true. #4316
Labels
Comments
It looks this issue can be caused by executing int capacity = this.capacity;
bucket = signSafeMod(bucket, capacity);
// First try optimistic locking
long storedKey = keys[bucket];
V storedValue = values[bucket]; not requires a read lock. |
I pushed a PR to fix the issue, and it can pass your test. |
This bug has been found long time ago, but the fix is merged into pulsar repository only, without bookkeeper. |
Good! @thetumbled |
closed by #4066 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BUG REPORT
Describe the bug
Similar to #1606 but only happens if autoShrink is true.
This was introduced by #3074 or some subsequent change related to autoShrink.
@lordcheng10 fyi
Error in prod
A clear and concise description of what the bug is.
To Reproduce
The text was updated successfully, but these errors were encountered: