poorbarcode opened a new pull request, #22479:
URL: https://github.com/apache/pulsar/pull/22479
### Motivation
**Background**
- When a topic is loading up, it will wait for the deduplication recovery to
be finished if deduplication is enabled.
- users can enable deduplication on the broker level, namespace level or
topic level.
- There is a scheduled task to acknowledge messages for the deduplication
cursor.
**Issue**
(Highlight) the scheduled task that acknowledges messages for the
deduplication cursor can only be created when the broker level deduplication is
enabled, leading to an infinite backlog of deduplication cursor; the next
deduplication recovery after a topic unloading will take a long time, which
leads to topic load timeout.
**A topic internal stats**
[topic-internal-stats.txt](https://github.com/apache/pulsar/files/14941515/topic-internal-stats.txt)
### Modifications
- Always start the scheduled task.
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update
later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
### Matching PR in forked repository
PR in forked repository: x
--
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]