1) Fix bug with the MergeTask not setting the binaryVersion field on DataSegments and causing the converter to run a lot.

This commit is contained in:
Eric Tschetter 2013-03-18 12:57:01 -05:00
parent 92efba5f30
commit e3674368ab
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ import com.google.common.collect.Sets;
import com.google.common.hash.Hashing;
import com.metamx.common.ISE;
import com.metamx.druid.client.DataSegment;
import com.metamx.druid.index.v1.IndexIO;
import com.metamx.druid.merger.common.TaskLock;
import com.metamx.druid.merger.common.TaskStatus;
import com.metamx.druid.merger.common.TaskToolbox;
@ -312,6 +313,7 @@ public abstract class MergeTaskBase extends AbstractTask
.dataSource(dataSource)
.interval(mergedInterval)
.version(version)
.binaryVersion(IndexIO.CURRENT_VERSION_ID)
.shardSpec(new NoneShardSpec())
.dimensions(Lists.newArrayList(mergedDimensions))
.metrics(Lists.newArrayList(mergedMetrics))