nicoloboschi commented on code in PR #19389:
URL: https://github.com/apache/pulsar/pull/19389#discussion_r1094372398


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java:
##########
@@ -5220,7 +5220,7 @@ protected void 
internalGetReplicatedSubscriptionStatus(AsyncResponse asyncRespon
                     .thenAccept(partitionMetadata -> {
                         if (partitionMetadata.partitions > 0) {
                             List<CompletableFuture<Void>> futures = new 
ArrayList<>(partitionMetadata.partitions);
-                            Map<String, Boolean> status = new HashMap<>();
+                            Map<String, Boolean> status = new 
ConcurrentHashMap<>(partitionMetadata.partitions);

Review Comment:
   the initial capacity of the ConcurrentHashMap is subject to the load factor. 
I'd leave it with the default capacity



-- 
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]

Reply via email to