IndexTask: Actually make and publish segments for the correct intervals.

This commit is contained in:
Gian Merlino 2013-12-12 13:50:53 -08:00
parent be25d51a2c
commit ba757b1e5a
1 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,7 @@ import io.druid.indexer.granularity.GranularitySpec;
import io.druid.indexing.common.TaskLock; import io.druid.indexing.common.TaskLock;
import io.druid.indexing.common.TaskStatus; import io.druid.indexing.common.TaskStatus;
import io.druid.indexing.common.TaskToolbox; import io.druid.indexing.common.TaskToolbox;
import io.druid.indexing.common.actions.SegmentInsertAction;
import io.druid.indexing.common.index.YeOldePlumberSchool; import io.druid.indexing.common.index.YeOldePlumberSchool;
import io.druid.query.aggregation.AggregatorFactory; import io.druid.query.aggregation.AggregatorFactory;
import io.druid.segment.loading.DataSegmentPusher; import io.druid.segment.loading.DataSegmentPusher;
@ -149,12 +150,13 @@ public class IndexTask extends AbstractFixedIntervalTask
indexGranularity, indexGranularity,
shardSpec shardSpec
), ),
getInterval(), bucket,
myLock.getVersion() myLock.getVersion()
); );
segments.add(segment); segments.add(segment);
} }
} }
toolbox.getTaskActionClient().submit(new SegmentInsertAction(segments));
return TaskStatus.success(getId()); return TaskStatus.success(getId());
} }