maytasm commented on a change in pull request #10371: URL: https://github.com/apache/druid/pull/10371#discussion_r489165878
########## File path: server/src/main/java/org/apache/druid/server/coordinator/duty/CompactSegments.java ########## @@ -61,7 +70,7 @@ private final CompactionSegmentSearchPolicy policy; private final IndexingServiceClient indexingServiceClient; - private Object2LongOpenHashMap<String> totalSizesOfSegmentsAwaitingCompactionPerDataSource; + private HashMap<String, AutoCompactionSnapshot> autoCompactionSnapshotPerDataSource = new HashMap<>(); Review comment: Changed AutoCompactionSnapshot to be immutable and changed autoCompactionSnapshotPerDataSource to be a concurrent hash map. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org For additional commands, e-mail: commits-h...@druid.apache.org