Technoboy- commented on code in PR #16438:
URL: https://github.com/apache/pulsar/pull/16438#discussion_r916408135
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java:
##########
@@ -2045,20 +2045,20 @@ private void handlePoliciesUpdates(NamespaceName
namespace) {
if (namespace.includes(TopicName.get(name))) {
// If the topic is already created, immediately
apply the updated policies, otherwise
// once the topic is created it'll apply the
policies update
- topicFuture.thenAccept(topic -> {
+ topicFuture.thenAcceptAsync(topic -> {
if (log.isDebugEnabled()) {
log.debug("Notifying topic that policies
have changed: {}", name);
}
topic.ifPresent(t ->
t.onPoliciesUpdate(policies));
- });
+ }, pulsar.getExecutor());
Review Comment:
Maybe we don't need to add executor here.
--
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]