eolivelli commented on code in PR #19388:
URL: https://github.com/apache/pulsar/pull/19388#discussion_r1094384342
##########
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:
in the Dispatcher we cached the result of
brokerService.getTopicOrderedExecutor().chooseThread(topic) into an instance
field, this will also reduce the waste of resources due to choosing the thread
(and make the code cleaner)
--
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]