eolivelli opened a new pull request, #4516: URL: https://github.com/apache/bookkeeper/pull/4516
### Motivation I have seen that calling getLength() creates unnecessary contention with threads that are appending entries. This can be easily eliminate by using AtomicLong. I cannot share flame graphs as I have found this on some propriatery application using BookKeeper. ### Changes - move LedgerHandle length to AtomicLong - remove `synchronized` in LedgerHandle.getLength() -- 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: commits-unsubscr...@bookkeeper.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org