You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by sa...@apache.org on 2019/04/19 01:46:23 UTC

[atlas] branch branch-2.0 updated: ATLAS-3150: Fix flaky integrations test in HiveHookIT - testAlterTableLocation()

This is an automated email from the ASF dual-hosted git repository.

sarath pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new c02d50c  ATLAS-3150: Fix flaky integrations test in HiveHookIT - testAlterTableLocation()
c02d50c is described below

commit c02d50c4dea935d6f2cb0fa8e50e946783c6ad0e
Author: Sarath Subramanian <ss...@hortonworks.com>
AuthorDate: Thu Apr 18 18:30:59 2019 -0700

    ATLAS-3150: Fix flaky integrations test in HiveHookIT - testAlterTableLocation()
    
    (cherry picked from commit f234ed1d4958c247dfeb99c996bbbea746ad83b1)
---
 addons/hive-bridge/src/test/java/org/apache/atlas/hive/HiveITBase.java  | 2 +-
 .../src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/addons/hive-bridge/src/test/java/org/apache/atlas/hive/HiveITBase.java b/addons/hive-bridge/src/test/java/org/apache/atlas/hive/HiveITBase.java
index 002b908..c8c53c4 100644
--- a/addons/hive-bridge/src/test/java/org/apache/atlas/hive/HiveITBase.java
+++ b/addons/hive-bridge/src/test/java/org/apache/atlas/hive/HiveITBase.java
@@ -82,7 +82,7 @@ public class HiveITBase {
     protected static final String DGI_URL      = "http://localhost:21000/";
     protected static final String CLUSTER_NAME = "primary";
     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";
 
 
diff --git a/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java b/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
index 142e355..677043a 100755
--- a/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
+++ b/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
@@ -1388,7 +1388,7 @@ public class HiveHookIT extends HiveITBase {
         String testPath  = createTestDFSPath("testBaseDir");
         String query     = "alter table " + tableName + " set location '" + testPath + "'";
 
-        runCommand(query);
+        runCommandWithDelay(query, 5000);
 
         assertTableIsRegistered(DEFAULT_DB, tableName, new AssertPredicate() {
             @Override