[fix] [proxy] Used in proxyConf file when configuration is missing in the command line
@@ -143,12 +143,14 @@ public class ProxyServiceStarter {
// load config file
config = PulsarConfigurationLoader.create(configFile, ProxyConfiguration.class);
- if (isBlank(metadataStoreUrl)) {
+ if (!isBlank(metadataStoreUrl)) {
+ // Use metadataStoreUrl from command line
+ config.setMetadataStoreUrl(metadataStoreUrl);
+ } else if (!isBlank(zookeeperServers)){
// Use zookeeperServers from command line if metadataStoreUrl is empty;
config.setMetadataStoreUrl(zookeeperServers);
} else {
- // Use metadataStoreUrl from command line
- config.setMetadataStoreUrl(metadataStoreUrl);
+ // use "metadataStoreUrl" property in "proxy.conf".
}
if (!isBlank(globalZookeeperServers)) {
