Skip to content

Commit

Permalink
Use ConcurrentHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 committed Sep 30, 2023
1 parent 23546c4 commit decf7fa
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
import org.apache.pulsar.common.naming.TopicName;
import org.apache.pulsar.common.stats.Metrics;
import org.apache.pulsar.common.util.FutureUtil;
import org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap;
import org.apache.pulsar.metadata.api.coordination.LeaderElectionState;
import org.slf4j.Logger;

Expand Down Expand Up @@ -184,10 +183,8 @@ public class ExtensibleLoadManagerImpl implements ExtensibleLoadManager {
// record split metrics
private final AtomicReference<List<Metrics>> splitMetrics = new AtomicReference<>();

private final ConcurrentOpenHashMap<String, CompletableFuture<Optional<BrokerLookupData>>>
lookupRequests = ConcurrentOpenHashMap.<String,
CompletableFuture<Optional<BrokerLookupData>>>newBuilder()
.build();
private final ConcurrentHashMap<String, CompletableFuture<Optional<BrokerLookupData>>>
lookupRequests = new ConcurrentHashMap<>();
private final CountDownLatch initWaiter = new CountDownLatch(1);

/**
Expand Down

0 comments on commit decf7fa

Please sign in to comment.