tjiuming commented on PR #17041:
URL: https://github.com/apache/pulsar/pull/17041#issuecomment-1238831630
@asafm Yes, you are right and I understand your concern, but actually, we
can know that which metadata store is configuration store and which stores
broker metadata, just takes a little skill:
In PulsarService.java, code as below:
```
localMetadataStore =
createLocalMetadataStore(localMetadataSynchronizer);
localMetadataStore.registerSessionListener(this::handleMetadataSessionEvent);
coordinationService = new
CoordinationServiceImpl(localMetadataStore);
if (config.isConfigurationStoreSeparated()) {
configMetadataSynchronizer =
StringUtils.isNotBlank(config.getConfigurationMetadataSyncEventTopic())
? new PulsarMetadataEventSynchronizer(this,
config.getConfigurationMetadataSyncEventTopic())
: null;
configurationMetadataStore =
createConfigurationMetadataStore(configMetadataSynchronizer);
shouldShutdownConfigurationMetadataStore = true;
} else {
configurationMetadataStore = localMetadataStore;
shouldShutdownConfigurationMetadataStore = false;
}
```
Broker metadata store initialized before configuration metadata store, so,
`metadata-store-0` is broker metadata store and `metadata-store-1` is
configuration metadata store
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]