AnonHxy opened a new pull request, #3989: URL: https://github.com/apache/bookkeeper/pull/3989
Descriptions of the changes in this PR: ### Motivation Improve remove performance of `LedgerMetadataIndex#pendingDeletedLedgers`. Currently the `pendingDeletedLedgers` is a `ConcurrentLinkedQueue`, and we just call `remove` and `add` and `poll` method of this queue. And it seems that we need not keep the order when poll items from it. Removing items from `ConcurrentLinkedQueue` need traversal the queue. Changing the `LedgerMetadataIndex#pendingDeletedLedgers` as a `ConcurrentHashSet` will improve the remove performance. ### Changes Changing the `LedgerMetadataIndex#pendingDeletedLedgers` as a `ConcurrentHashSet` -- 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]
