tuteng commented on a change in pull request #6102:  [Websocket] Websocket 
doesn't set the correct cluster data
URL: https://github.com/apache/pulsar/pull/6102#discussion_r369046126
 
 

 ##########
 File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
 ##########
 @@ -466,6 +464,10 @@ public Boolean get() {
             this.brokerServiceUrl = brokerUrl(config);
             this.brokerServiceUrlTls = brokerUrlTls(config);
 
+            ClusterData clusterData =
+                new ClusterData(webServiceAddress, webServiceAddressTls, 
brokerServiceUrl, brokerServiceUrlTls);
+            this.webSocketService.setLocalCluster(clusterData);
 
 Review comment:
   The variable `this.webSocketService` may not have been properly initialized?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to