yuanlihan commented on a change in pull request #9905:
URL: https://github.com/apache/druid/pull/9905#discussion_r436249451
##########
File path:
indexing-service/src/main/java/org/apache/druid/indexing/common/task/CompactionTask.java
##########
@@ -524,10 +524,28 @@ private String createIndexTaskSpecId(int i)
.add(p)
);
- final List<ParallelIndexIngestionSpec> specs = new
ArrayList<>(intervalToSegments.size());
- for (Entry<Interval, List<Pair<QueryableIndex, DataSegment>>> entry :
intervalToSegments.entrySet()) {
- final Interval interval = entry.getKey();
- final List<Pair<QueryableIndex, DataSegment>> segmentsToCompact =
entry.getValue();
+ // unify overlapping intervals to ensure overlapping segments compacting
in the same indexSpec
+ List<Pair<Interval, List<Pair<QueryableIndex, DataSegment>>>>
intervalToSegmentsUnified = new ArrayList<>();
+ Iterator<Interval> iterator = intervalToSegments.keySet().iterator();
+ Interval union = iterator.next();
+ List<Pair<QueryableIndex, DataSegment>> segments = new
ArrayList<>(intervalToSegments.get(union));
Review comment:
fixed CI failure.
----------------------------------------------------------------
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]