ciaocloud commented on a change in pull request #13195:
URL: https://github.com/apache/pulsar/pull/13195#discussion_r765466311
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
##########
@@ -2485,6 +2493,13 @@ private boolean shouldTopicBeRetained() {
//If the topic-level policy already exists, the namespace-level policy
cannot override the topic-level policy.
Optional<TopicPolicies> topicPolicies = getTopicPolicies();
+ if (data.topicLifecycle != null) {
+ // reset new inactiveTopicPolicies with topicLifecycle info if one
exists
+ this.topicPolicies.getInactiveTopicPolicies().updateBrokerValue(
Review comment:
o.k., we'll need to use `updateNamespaceValue` to reset the
`inactiveTopicPolicies`, right?
--
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]