You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by bh...@apache.org on 2018/12/19 18:54:17 UTC
[3/3] impala git commit: IMPALA-7864: Deflake test_replan_limit
IMPALA-7864: Deflake test_replan_limit
- Doubles the number of attempts to check for inconsistent metadata.
- Increases the chance of inconsistent metadata by adding more
concurrent 'refresh'es (for bumping the table versions).
Change-Id: I0eb914f4ab87de690fce3f24f356692163f069a4
Reviewed-on: http://gerrit.cloudera.org:8080/12105
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/0c957fcd
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/0c957fcd
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/0c957fcd
Branch: refs/heads/master
Commit: 0c957fcd5b78f8146d39d61ece0b3e53195dcfa0
Parents: d51aa52
Author: Bharath Vissapragada <bh...@cloudera.com>
Authored: Mon Dec 17 20:25:48 2018 -0800
Committer: Impala Public Jenkins <im...@cloudera.com>
Committed: Wed Dec 19 06:46:05 2018 +0000
----------------------------------------------------------------------
tests/custom_cluster/test_local_catalog.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/impala/blob/0c957fcd/tests/custom_cluster/test_local_catalog.py
----------------------------------------------------------------------
diff --git a/tests/custom_cluster/test_local_catalog.py b/tests/custom_cluster/test_local_catalog.py
index 5445217..f9399d7 100644
--- a/tests/custom_cluster/test_local_catalog.py
+++ b/tests/custom_cluster/test_local_catalog.py
@@ -234,10 +234,8 @@ class TestLocalCatalogRetries(CustomClusterTestSuite):
def stress_thread(client):
# Loops, picks a random query in each iteration, runs it,
# and looks for retries and InconsistentMetadataFetchExceptions.
- # Limit the number of queries run. Too many queries takes up too
- # much memory which can get OOM killed in tests.
attempt = 0
- while inconsistent_seen[0] == 0 and attempt < 100:
+ while inconsistent_seen[0] == 0 and attempt < 200:
q = random.choice(queries)
attempt += 1
try:
@@ -298,8 +296,8 @@ class TestLocalCatalogRetries(CustomClusterTestSuite):
"""
queries = [
'refresh functional.alltypes',
- 'select count(*) from functional.alltypes where month=4',
- 'select count(*) from functional.alltypes where month=5']
+ 'refresh functional.alltypes partition (year=2009, month=4)',
+ 'select count(*) from functional.alltypes where month=4']
seen = self._check_metadata_retries(queries)
assert seen > 0, "Did not observe inconsistent metadata"