Commit f234ed1d by Sarath Subramanian

ATLAS-3150: Fix flaky integrations test in HiveHookIT - testAlterTableLocation()

parent 3def7682
...@@ -82,7 +82,7 @@ public class HiveITBase { ...@@ -82,7 +82,7 @@ public class HiveITBase {
protected static final String DGI_URL = "http://localhost:21000/"; protected static final String DGI_URL = "http://localhost:21000/";
protected static final String CLUSTER_NAME = "primary"; protected static final String CLUSTER_NAME = "primary";
protected static final String PART_FILE = "2015-01-01"; protected static final String PART_FILE = "2015-01-01";
protected static final String INPUTS = "inputs";; protected static final String INPUTS = "inputs";
protected static final String OUTPUTS = "outputs"; protected static final String OUTPUTS = "outputs";
......
...@@ -1388,7 +1388,7 @@ public class HiveHookIT extends HiveITBase { ...@@ -1388,7 +1388,7 @@ public class HiveHookIT extends HiveITBase {
String testPath = createTestDFSPath("testBaseDir"); String testPath = createTestDFSPath("testBaseDir");
String query = "alter table " + tableName + " set location '" + testPath + "'"; String query = "alter table " + tableName + " set location '" + testPath + "'";
runCommand(query); runCommandWithDelay(query, 5000);
assertTableIsRegistered(DEFAULT_DB, tableName, new AssertPredicate() { assertTableIsRegistered(DEFAULT_DB, tableName, new AssertPredicate() {
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment