You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/01/21 03:14:25 UTC
[GitHub] [pulsar] nodece commented on a change in pull request #13786: [WebSocket] Add configuration metadata store url setting in websocket
nodece commented on a change in pull request #13786:
URL: https://github.com/apache/pulsar/pull/13786#discussion_r789320776
##########
File path: pulsar-websocket/src/main/java/org/apache/pulsar/websocket/service/WebSocketProxyConfiguration.java
##########
@@ -67,9 +67,13 @@
)
private String globalZookeeperServers;
+ @Deprecated
@FieldContext(doc = "Connection string of configuration store servers")
private String configurationStoreServers;
+ @FieldContext(doc = "Connection string of configuration metadata store servers")
+ private String configurationMetadataStoreUrl;
Review comment:
Looks like we should be compatible with the old config, overwrite the `getConfigurationMetadataStoreUrl()`, so like:
```java
public String getConfigurationMetadataStoreUrl() {
if (StringUtils.isNotEmpty(this.configurationMetadataStoreUrl)) {
return this.configurationMetadataStoreUrl;
}
// backward compatible
if (StringUtils.isNotEmpty(this.configurationStoreServers)) {
return this.configurationStoreServers;
}
return this.globalZookeeperServers;
}
```
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org