MarvinCai opened a new pull request #9929:
URL: https://github.com/apache/pulsar/pull/9929
Fixes #2736
### Motivation
Able to set infinite retention on a namespace and then manually truncate the
topic.
### Modifications
In ManagedLedgerImpl, expose api to delete ledger upon given position.
Add Admin rest endpoint and CLI for this functionality.
### Verifying this change
This change added tests and can be verified as follows:
- Added unit test to verify topic trimming work as expected.
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): no
- The public API: yes
- The schema: no
- The default values of configurations: no
- The wire protocol: no
- The rest endpoints: yes
- The admin cli options: yes
- Anything that affects deployment: no
### Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? docs / JavaDocs
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]