mirror of https://github.com/apache/druid.git
IndexTask: Actually make and publish segments for the correct intervals.
This commit is contained in:
parent
be25d51a2c
commit
ba757b1e5a
|
@ -41,6 +41,7 @@ import io.druid.indexer.granularity.GranularitySpec;
|
|||
import io.druid.indexing.common.TaskLock;
|
||||
import io.druid.indexing.common.TaskStatus;
|
||||
import io.druid.indexing.common.TaskToolbox;
|
||||
import io.druid.indexing.common.actions.SegmentInsertAction;
|
||||
import io.druid.indexing.common.index.YeOldePlumberSchool;
|
||||
import io.druid.query.aggregation.AggregatorFactory;
|
||||
import io.druid.segment.loading.DataSegmentPusher;
|
||||
|
@ -149,12 +150,13 @@ public class IndexTask extends AbstractFixedIntervalTask
|
|||
indexGranularity,
|
||||
shardSpec
|
||||
),
|
||||
getInterval(),
|
||||
bucket,
|
||||
myLock.getVersion()
|
||||
);
|
||||
segments.add(segment);
|
||||
}
|
||||
}
|
||||
toolbox.getTaskActionClient().submit(new SegmentInsertAction(segments));
|
||||
return TaskStatus.success(getId());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue