You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "FrankChen021 (via GitHub)" <gi...@apache.org> on 2026/07/30 12:41:04 UTC

Re: [PR] feat: add `skipIntervals` to `DataSourceCompactionConfig` (druid)

FrankChen021 commented on code in PR #19792:
URL: https://github.com/apache/druid/pull/19792#discussion_r3682713481


##########
server/src/main/java/org/apache/druid/server/compaction/DataSourceCompactibleSegmentIterator.java:
##########
@@ -368,8 +368,10 @@ private List<Interval> findInitialSearchInterval(
         last.getInterval().getEnd(),
         skipOffset
     );
-    final List<Interval> allSkipIntervals
-        = sortAndAddSkipIntervalFromLatest(latestSkipInterval, skipIntervals);
+    final List<Interval> allSkipIntervals = JodaUtils.condenseIntervals(Iterables.concat(
+        skipIntervals,

Review Comment:
   [P1] Honor configured skips in coordinator compaction
   
   This list only contains caller-provided intervals. The supervisor template adds `config.getSkipIntervals()`, but the supported Coordinator duty uses `PriorityBasedCompactionSegmentIterator`, which passes only locked or running-task intervals. When supervisors are disabled, including the older-Overlord fallback, configured `skipIntervals` are silently ignored and excluded data can still be compacted. Merge the config intervals in the shared or coordinator path and add legacy-duty coverage.



-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org