You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "mattisonchao (via GitHub)" <gi...@apache.org> on 2023/09/21 18:05:13 UTC
[GitHub] [pulsar] mattisonchao opened a new pull request, #21233: [improve][broker] Avoid potential inconsistent topic policy
mattisonchao opened a new pull request, #21233:
URL: https://github.com/apache/pulsar/pull/21233
### Motivation
Follow up #21231, avoid getting policy directly by cache in broker service.
### Modifications
- Avoid getting topic policy directly in the broker service. It will leave potential bugs by inconsistent topic policies.
- Deprecate some methods by undefined exceptions and blocking calls.
- AbstractTopic#getTopicPolicies();
- BrokerService#getTopicPolicies(TopicName topicName);
- Let BrokerService#isAllowAutoSubscriptionCreationAsync use async method to get topic policies.
### Verifying this change
- [x] Make sure that the change passes the CI checks.
### 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 -->
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] mattisonchao closed pull request #21233: [improve][broker] Avoid potential inconsistent topic policy
Posted by "mattisonchao (via GitHub)" <gi...@apache.org>.
mattisonchao closed pull request #21233: [improve][broker] Avoid potential inconsistent topic policy
URL: https://github.com/apache/pulsar/pull/21233
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org