aparna0522 commented on code in PR #4569:
URL: https://github.com/apache/cassandra/pull/4569#discussion_r2714699614
##########
src/java/org/apache/cassandra/replication/MutationTrackingService.java:
##########
@@ -305,6 +307,19 @@ public void updateReplicatedOffsets(String keyspace,
Range<Token> range, List<?
try
{
getOrCreateShards(keyspace).updateReplicatedOffsets(range,
offsets, durable, onHost);
+
+ // Notify any registered sync coordinators about the offset update
+ Set<MutationTrackingSyncCoordinator> coordinators =
syncCoordinatorsByKeyspace.get(keyspace);
Review Comment:
I don't think there would be a lot of shards, but it would be a good
practice to keep the notifying logic out of the locks. It doesn't really need
to be under a lock to notify!
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]