Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -1135,7 +1135,8 @@ public void testOverrideIndexRebuildPageSizeFromIndexTool() throws Exception {
// Run the index MR job and verify that the index table is built correctly
Configuration conf = new Configuration(getUtility().getConfiguration());
conf.set(QueryServices.INDEX_REBUILD_PAGE_SIZE_IN_ROWS, Long.toString(2));
IndexTool indexTool = IndexToolIT.runIndexTool(directApi, useSnapshot, schemaName, dataTableName, indexTableName, null, 0, IndexTool.IndexVerifyType.BEFORE, new String[0]);
IndexTool indexTool = IndexToolIT.runIndexTool(conf, directApi, useSnapshot, schemaName, dataTableName,
indexTableName, null, 0, IndexTool.IndexVerifyType.BEFORE, IndexTool.IndexDisableLoggingType.NONE, new String[0]);
assertEquals(NROWS, indexTool.getJob().getCounters().findCounter(INPUT_RECORDS).getValue());
assertEquals(NROWS, indexTool.getJob().getCounters().findCounter(SCANNED_DATA_ROW_COUNT).getValue());
assertEquals(NROWS, indexTool.getJob().getCounters().findCounter(REBUILT_INDEX_ROW_COUNT).getValue());
Expand DownExpand Up@@ -1167,9 +1168,9 @@ public void testPointDeleteRebuildWithPageSize() throws Exception {
Configuration conf = new Configuration(getUtility().getConfiguration());
conf.set(QueryServices.INDEX_REBUILD_PAGE_SIZE_IN_ROWS, Long.toString(1));
IndexTool indexTool =
IndexToolIT.runIndexTool(directApi, useSnapshot, schemaName,
IndexToolIT.runIndexTool(conf, directApi, useSnapshot, schemaName,
dataTableName, indexTableName, null, 0, IndexTool.IndexVerifyType.BEFORE,
new String[0]);
IndexTool.IndexDisableLoggingType.NONE ,new String[0]);
assertEquals(3, indexTool.getJob().getCounters().findCounter(INPUT_RECORDS).getValue());
assertEquals(3,
indexTool.getJob().getCounters().findCounter(SCANNED_DATA_ROW_COUNT).getValue());
Expand DownExpand Up@@ -1221,9 +1222,9 @@ public void testIncrementalRebuildWithPageSize() throws Exception {
Configuration conf = new Configuration(getUtility().getConfiguration());
conf.set(QueryServices.INDEX_REBUILD_PAGE_SIZE_IN_ROWS, Long.toString(2));
IndexTool indexTool =
IndexToolIT.runIndexTool(directApi, useSnapshot, schemaName,
IndexToolIT.runIndexTool(conf, directApi, useSnapshot, schemaName,
dataTableName, indexTableName, null, 0, IndexTool.IndexVerifyType.AFTER,
"-st", String.valueOf(minTs), "-et",
IndexTool.IndexDisableLoggingType.NONE, "-st", String.valueOf(minTs), "-et",
String.valueOf(EnvironmentEdgeManager.currentTimeMillis()));
assertEquals(3, indexTool.getJob().getCounters().findCounter(INPUT_RECORDS).getValue());
assertEquals(3,
Expand Down