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 2020/07/06 03:59:02 UTC
[GitHub] [pulsar] liudezhi2098 opened a new issue #7457: when zookeeperServers and configurationStoreServers is different , the bookieMetadataServiceUri is incorrectly obtained
liudezhi2098 opened a new issue #7457:
URL: https://github.com/apache/pulsar/issues/7457
when zookeeperServers and configurationStoreServers is different
```bash
zookeeperServers=127.0.0.1:2181
configurationStoreServers= 127.0.0.2:2181
```
the bookie client is created, it fails because the bookie cluster metadata information cannot be found。
```java
public static String bookieMetadataServiceUri(ServiceConfiguration config) {
ClientConfiguration bkConf = new ClientConfiguration();
// init bookkeeper metadata service uri
String metadataServiceUri = null;
try {
String zkServers = config.getConfigurationStoreServers();
bkConf.setZkServers(zkServers);
metadataServiceUri = bkConf.getMetadataServiceUri();
} catch (ConfigurationException e) {
LOG.error("Failed to get bookkeeper metadata service uri", e);
}
return metadataServiceUri;
}
```
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] liudezhi2098 closed issue #7457: when zookeeperServers and configurationStoreServers is different , the bookieMetadataServiceUri is incorrectly obtained
Posted by GitBox <gi...@apache.org>.
liudezhi2098 closed issue #7457:
URL: https://github.com/apache/pulsar/issues/7457
----------------------------------------------------------------
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:
users@infra.apache.org