-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Support set message TTL on topic level. #7738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support set message TTL on topic level. #7738
Conversation
Add support for message TTL at Topic level using System Topic backed Topic policy.
|
/pulsarbot run-failure-checks |
Improve test stability by trigger namespace bundle load to make sure topic initialized when test case is ran Similar to what we do for TopicBacklogQuotaTest. Also added wait time after setup.
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
jianyun8023
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You did it very well.👍
|
|
||
| @DELETE | ||
| @Path("/{tenant}/{namespace}/{topic}/messageTTL") | ||
| @ApiOperation(value = "Set message TTL in seconds for a topic") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove message TTL in seconds for a topic
codelipenghui
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, please fix the comment that @jianyun8023 mentioned
|
/pulsarbot run-failure-checks |
### Motivation Master Issue: apache#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.*
### Motivation Master Issue: apache#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.*
### Motivation Master Issue: apache#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.*
### Motivation Master Issue: apache#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.*
…stence polices, message TTL, and backlog quota on topic level (#7852) Motivation In PRs, #7738, #7646, #7817, persistence polices, message TTL, and backlog quota policies are supported on topic level. The PR for code modification is updated and merged. but the doc is not updated accordingly. This PR is used to support to set/get/remove persistence polices, message TTL, and backlog quota on topic level. Modifications Update the Pulsar Admin CLI doc to support to set/get/remove persistence polices, message TTL, and backlog quota on topic level. * Update backlog-quota policies on topic level * update contents * update contents
…stence polices, message TTL, and backlog quota on topic level (apache#7852) Motivation In PRs, apache#7738, apache#7646, apache#7817, persistence polices, message TTL, and backlog quota policies are supported on topic level. The PR for code modification is updated and merged. but the doc is not updated accordingly. This PR is used to support to set/get/remove persistence polices, message TTL, and backlog quota on topic level. Modifications Update the Pulsar Admin CLI doc to support to set/get/remove persistence polices, message TTL, and backlog quota on topic level. * Update backlog-quota policies on topic level * update contents * update contents
|
Hi team, do we have any plan to publish official document on this feature? |
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:
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation