merlimat closed pull request #1589: Start function worker service after broker is fully started URL: https://github.com/apache/incubator-pulsar/pull/1589
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java index 0370346c6..3d14b8b08 100644 --- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java +++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java @@ -410,9 +410,6 @@ public synchronized void brokerIsAFollowerNow() { leaderElectionService.start(); - // start function worker service if necessary - this.startWorkerService(); - LOG.info("Starting Pulsar Broker service; version: '{}'", ( brokerVersion != null ? brokerVersion : "unknown" ) ); webService.start(); @@ -424,6 +421,9 @@ public synchronized void brokerIsAFollowerNow() { state = State.Started; acquireSLANamespace(); + + // start function worker service if necessary + this.startWorkerService(); LOG.info("messaging service is ready, bootstrap service on port={}, broker url={}, cluster={}, configs={}", config.getWebServicePort(), brokerServiceUrl, config.getClusterName(), ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services