IMPALA-7870: Increase the timeout in test_v1_catalog

TestAutomaticCatalogInvalidation.test_v1_catalog need to wait for a
predefined time for the invalidation to take effect. The test is flaky
recently because of it. This patch increates the timeout by 2.5x.

Change-Id: If7d37a6109b2e8de1473d42d699b8c7057d0b29b
Reviewed-on: http://gerrit.cloudera.org:8080/11997
Reviewed-by: Todd Lipcon <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/e546e523
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/e546e523
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/e546e523

Branch: refs/heads/master
Commit: e546e5234444f491166a052667aeb8fddebd6873
Parents: a1407ad
Author: Tianyi Wang <[email protected]>
Authored: Tue Nov 27 14:38:36 2018 -0800
Committer: Impala Public Jenkins <[email protected]>
Committed: Wed Nov 28 04:25:54 2018 +0000

----------------------------------------------------------------------
 tests/custom_cluster/test_automatic_invalidation.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/impala/blob/e546e523/tests/custom_cluster/test_automatic_invalidation.py
----------------------------------------------------------------------
diff --git a/tests/custom_cluster/test_automatic_invalidation.py 
b/tests/custom_cluster/test_automatic_invalidation.py
index e82217b..a9aba66 100644
--- a/tests/custom_cluster/test_automatic_invalidation.py
+++ b/tests/custom_cluster/test_automatic_invalidation.py
@@ -55,8 +55,8 @@ class 
TestAutomaticCatalogInvalidation(CustomClusterTestSuite):
     cursor.fetchall()
     # The table is cached after usage.
     assert self.metadata_cache_string in self._get_catalog_object()
-    # Wait 2 * table TTL for the invalidation to take effect.
-    max_wait_time = time.time() + self.timeout * 2
+    # Wait 5 * table TTL for the invalidation to take effect.
+    max_wait_time = time.time() + self.timeout * 5
     while True:
       time.sleep(1)
       # The table is eventually evicted.

Reply via email to