Skip to content
Closed
Show file tree
Hide file tree
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@@ -109,6 +109,10 @@ public static synchronized Collection<MavenCoordinates> data() throws Exception
public synchronized void doSetup() throws Exception {
tmpDir = System.getProperty("java.io.tmpdir");
conf = HBaseConfiguration.create();
conf.set(QueryServices.TASK_HANDLING_INTERVAL_MS_ATTRIB,
Long.toString(Long.MAX_VALUE));
conf.set(QueryServices.TASK_HANDLING_INITIAL_DELAY_MS_ATTRIB,
Long.toString(Long.MAX_VALUE));
hbaseTestUtil = new HBaseTestingUtility(conf);
setUpConfigForMiniCluster(conf);
conf.set(QueryServices.EXTRA_JDBC_ARGUMENTS_ATTRIB, QueryServicesOptions.DEFAULT_EXTRA_JDBC_ARGUMENTS);
Expand DownExpand Up@@ -389,18 +393,19 @@ public void testSystemTaskCreationWithIndexAsyncRebuild() throws Exception {
if (majorVersion > 4 || (majorVersion == 4 && minorVersion >= 15)) {
executeQueryWithClientVersion(compatibleClientVersion,
INDEX_REBUILD_ASYNC, zkQuorum);
// wait to finish the rebuild job (convoluted logic to preserve the AssertionError)
//Check if the task is added.
//It won't start because we set the task intervals to long.MAX_VALUE
int retryCount=0;
while (true) {
try {
Thread.sleep(5000);
executeQueriesWithCurrentVersion(QUERY_INDEX_REBUILD_ASYNC, url, NONE);
assertExpectedOutput(QUERY_INDEX_REBUILD_ASYNC);
break;
} catch (AssertionError e) {
if (retryCount++ > 10) {
throw e;
}
Thread.sleep(5000);
}
}
}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,7 +17,7 @@
*/

'TASK_TYPE','TABLE_NAME','TASK_STATUS','TASK_PRIORITY'
'2','TI','COMPLETED','4'
'2','TI','CREATED','4'
'K','V'
'key1','val2'
'key3','val3'