maytasm commented on a change in pull request #10371:
URL: https://github.com/apache/druid/pull/10371#discussion_r489168520



##########
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 the autoCompactionSnapshotPerDataSource into a 
AtomicReference<Map<String, AutoCompactionSnapshot>>.
   
   We will build a new autoCompactionSnapshotPerDataSource of snapshots in each 
compaction run then replace (atomically) the whole map 
(autoCompactionSnapshotPerDataSource) at the end in `makeStats`




----------------------------------------------------------------
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

Reply via email to