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/24 08:32:29 UTC
[GitHub] [pulsar] codelipenghui commented on a change in pull request #13908: Fix unit test testSharedInstance fail
codelipenghui commented on a change in pull request #13908:
URL: https://github.com/apache/pulsar/pull/13908#discussion_r790508311
##########
File path: pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/LocalMemoryMetadataStore.java
##########
@@ -84,6 +88,14 @@ public LocalMemoryMetadataStore(String metadataURL, MetadataStoreConfig metadata
// Use a reference from a shared data set
String name = uri.getHost();
map = STATIC_MAPS.computeIfAbsent(name, __ -> new TreeMap<>());
+ STATIC_INSTANCE.compute(name, (key, value) -> {
+ if (value == null) {
+ value = new HashSet<>();
+ }
+ value.forEach(v -> registerListener(v));
Review comment:
+1
--
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