aweisberg commented on a change in pull request #283: CASSANDRA-14459: DynamicEndpointSnitch
should never prefer latent replicas
URL: https://github.com/apache/cassandra/pull/283#discussion_r267992715
##########
File path: src/java/org/apache/cassandra/net/MessagingService.java
##########
@@ -538,7 +541,7 @@ public void resetDroppedMessagesMap(String scope)
// total dropped message counts for server lifetime
private final Map<Verb, DroppedMessages> droppedMessagesMap = new EnumMap<>(Verb.class);
- private final List<ILatencySubscriber> subscribers = new ArrayList<ILatencySubscriber>();
+ private final Set<ILatencySubscriber> latencySubscribers = new CopyOnWriteArraySet<>();
Review comment:
Shouldn't this be CoWArrayList for performance since the most common thing is iteration?
Not that it matters much.
----------------------------------------------------------------
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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
|