Closed dlg99 closed 6 months ago
It looks this issue can be caused by rehash
method.
executing rehash
method requires writeLock
, but run
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. https://github.com/apache/bookkeeper/pull/4317
This bug has been found long time ago, but the fix is merged into pulsar repository only, without bookkeeper. I think it is time to merge this pr to fix this problem, thanks. https://github.com/apache/bookkeeper/pull/4066
Good! @thetumbled
closed by #4066
BUG REPORT
Describe the bug
Similar to https://github.com/apache/bookkeeper/issues/1606 but only happens if autoShrink is true. This was introduced by https://github.com/apache/bookkeeper/pull/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