dao-jun commented on issue #4316:
URL: https://github.com/apache/bookkeeper/issues/4316#issuecomment-2080202807

   It looks this issue can be caused by `rehash` method.
   
   executing `rehash` method requires `writeLock`, but run 
   ```java
                       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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to