maytasm commented on a change in pull request #10371:
URL: https://github.com/apache/druid/pull/10371#discussion_r489166052
##########
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:
When a new compaction run happens, we create a new snapshot and update
(atomically) the autoCompactionSnapshotPerDataSource since
autoCompactionSnapshotPerDataSource is 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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]