315157973 opened a new pull request, #20649: URL: https://github.com/apache/pulsar/pull/20649
### Motivation The executor in `ManagedLedgerImpl` uses the `MainWorkerPool` of bookKeeper, and both produce and consume use this thread pool. When there are a large number of partitions in the cluster and the cluster is busy, trim ledger will cause the produce latency to rise from hundreds of milliseconds to seconds. We found that a large number of tasks are stuck in the queue of the thread pool Trim ledger is a thread-safe operation and has no latency requirements, so we'd better separate it from `MainWorkerPool` of bookKeeper ### Modifications Separate it from `MainWorkerPool` of bookKeeper ### Verifying this change ### Documentation - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> ### Matching PR in forked repository -- 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]
