void-ptr974 opened a new pull request, #26029: URL: https://github.com/apache/pulsar/pull/26029
### Motivation Part of #26027. This adds focused JMH coverage for `PendingAcksMap` so the follow-up storage changes can be reviewed against repeatable benchmark scenarios. The patch only adds benchmark code and does not change broker behavior. ### Modifications - Add `PendingAcksMapBenchmark` under `microbench`. - Cover exact lookup, add/update/remove, full iteration, mark-delete cleanup, same-ledger prefix cleanup, populate cost, steady dispatch/ack churn, and periodic partial-ack updates. - Include datasets based on current defaults such as `receiverQueueSize = 1000` and `maxUnackedMessagesPerConsumer = 50000`. - Keep an `oldProduction` implementation in the benchmark so follow-up PRs can compare the current nested-map layout with the changed implementation. ### Verifying this change - `./gradlew :microbench:compileJava :microbench:checkstyleMain --max-workers=1` -- 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]
