heesung-sn commented on code in PR #19730:
URL: https://github.com/apache/pulsar/pull/19730#discussion_r1130572901
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/ExtensibleLoadManagerImpl.java:
##########
@@ -398,6 +425,50 @@ private boolean isInternalTopic(String topic) {
|| topic.startsWith(TOP_BUNDLES_LOAD_DATA_STORE_TOPIC);
}
+ private void playLeader() {
+ log.info("This broker:{} is the leader now.",
pulsar.getLookupServiceAddress());
+ serviceUnitStateChannel.scheduleOwnershipMonitor();
+ this.pulsar.getLoadManagerExecutor().execute(() -> {
+ try {
+ loadStoreInitWaiter.await();
+ } catch (InterruptedException e) {
Review Comment:
Optimistically, yes.
If the load store has been initialized, then it will successfully start
table view.
If not, in the worst case, the table view start will throw an exception.
--
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]