MarvinCai opened a new pull request #7738:
URL: https://github.com/apache/pulsar/pull/7738
### Motivation
Master Issue: #2688
Add Topic level policy support for message TTL.
### Modifications
Support set/get/remove Message TTL on topic level.
### Verifying this change
This change added tests and can be verified as follows:
- *Added Unit test to verify set/get/remove message TTL at Topic level
work as expected when Topic level policy is enabled/disabled*
- *Added test case in PersistentTopicE2ETest to verify Topic level message
TTL is used when set and will fall back to namespace message TTL if Topic level
message TTL is removed.*
### 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: (no )
- 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? (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]