nicoloboschi commented on code in PR #19388:
URL: https://github.com/apache/pulsar/pull/19388#discussion_r1094376358


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java:
##########
@@ -359,7 +359,7 @@ public CompletableFuture<Void> initialize() {
                     this.isEncryptionRequired = policies.encryption_required;
 
                     isAllowAutoUpdateSchema = 
policies.is_allow_auto_update_schema;
-                })
+                }, brokerService.getTopicOrderedExecutor().chooseThread(topic))

Review Comment:
   it'd be good to create a private method to get an executor instead of 
repeating this call many times



-- 
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]

Reply via email to