clintropolis commented on a change in pull request #6898: Prohibit assigning concurrent maps into Map-typed variables and fields and fix a race condition in CoordinatorRuleManager URL: https://github.com/apache/incubator-druid/pull/6898#discussion_r253337505
########## File path: server/src/main/java/org/apache/druid/segment/realtime/appenderator/AppenderatorImpl.java ########## @@ -121,7 +121,7 @@ private final IndexIO indexIO; private final IndexMerger indexMerger; private final Cache cache; - private final Map<SegmentIdWithShardSpec, Sink> sinks = new ConcurrentHashMap<>(); + private final ConcurrentHashMap<SegmentIdWithShardSpec, Sink> sinks = new ConcurrentHashMap<>(); Review comment: yeah, I guess this one looks like it could just be `ConcurrentMap` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
