Skip to content

Commit

Permalink
fix backport of apache#1960 for 0.8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
xvrl committed Nov 12, 2015
1 parent 747314f commit 7ad1b60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
import com.metamx.common.ISE;

public class QueryableIndexIndexableAdapterTest {
private final static IndexMerger INDEX_MERGER = TestHelper.getTestIndexMerger();
private final static IndexIO INDEX_IO = TestHelper.getTestIndexIO();
private static final IndexSpec INDEX_SPEC = IndexMergerTest.makeIndexSpec(
new ConciseBitmapSerdeFactory(),
CompressedObjectStrategy.CompressionStrategy.LZ4,
Expand All @@ -54,7 +52,7 @@ public class QueryableIndexIndexableAdapterTest {
public void testGetBitmapIndexSeeker() throws Exception
{
final long timestamp = System.currentTimeMillis();
IncrementalIndex toPersist = IncrementalIndexTest.createIndex(null);
IncrementalIndex toPersist = IncrementalIndexTest.createIndex(false, null);
IncrementalIndexTest.populateIndex(timestamp, toPersist);

final File tempDir = temporaryFolder.newFolder();
Expand All @@ -65,8 +63,8 @@ public void testGetBitmapIndexSeeker() throws Exception
);

QueryableIndex index = closer.closeLater(
INDEX_IO.loadIndex(
INDEX_MERGER.persist(
IndexIO.loadIndex(
IndexMerger.persist(
toPersist,
tempDir,
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class IncrementalIndexAdapterTest {
public void testGetBitmapIndexSeeker() throws Exception
{
final long timestamp = System.currentTimeMillis();
IncrementalIndex incrementalIndex = IncrementalIndexTest.createIndex(null);
IncrementalIndex incrementalIndex = IncrementalIndexTest.createIndex(false, null);
IncrementalIndexTest.populateIndex(timestamp, incrementalIndex);
IndexableAdapter adapter = new IncrementalIndexAdapter(
incrementalIndex.getInterval(),
Expand Down

0 comments on commit 7ad1b60

Please sign in to comment.