jasonstack commented on code in PR #2769:
URL: https://github.com/apache/cassandra/pull/2769#discussion_r1361430967
##########
src/java/org/apache/cassandra/index/sai/StorageAttachedIndexGroup.java:
##########
@@ -75,10 +75,12 @@ public class StorageAttachedIndexGroup implements
Index.Group, INotificationCons
{
private static final Logger logger =
LoggerFactory.getLogger(StorageAttachedIndexGroup.class);
+ public static final Index.Group.Key GROUP_KEY = new
Index.Group.Key(StorageAttachedIndexGroup.class);
+
private final TableQueryMetrics queryMetrics;
private final TableStateMetrics stateMetrics;
private final IndexGroupMetrics groupMetrics;
- private final Set<StorageAttachedIndex> indexes =
Sets.newConcurrentHashSet();
+ private final Set<StorageAttachedIndex> indexes =
ConcurrentHashMap.newKeySet();
Review Comment:
it could be creating new index while iterating current index list for
notifications
--
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]