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

brandonwilliams pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git


The following commit(s) were added to refs/heads/master by this push:
     new 1789213  Fix flaky timeouts coming from concurrent view builds and 
schema modification
1789213 is described below

commit 1789213ee00a05b3686858b3a22dc8c2d26fc837
Author: Adam Holmberg <[email protected]>
AuthorDate: Wed Sep 30 16:40:41 2020 -0500

    Fix flaky timeouts coming from concurrent view builds and schema 
modification
    
    Patch by Adam Holmberg, reviewed by Berenguer Blasi and brandonwilliams
    for CASSANDRA-15993
---
 materialized_views_test.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/materialized_views_test.py b/materialized_views_test.py
index 625a697..b1cd79e 100644
--- a/materialized_views_test.py
+++ b/materialized_views_test.py
@@ -209,13 +209,14 @@ class TestMaterializedViews(Tester):
             logger.debug("create view")
             for view in range(views):
                 session.execute("CREATE MATERIALIZED VIEW mv{} AS SELECT * 
FROM t "
-                                "WHERE k IS NOT NULL AND c IS NOT NULL PRIMARY 
KEY (c,k)".format(view))
-            for view in range(views):
+                                "WHERE k IS NOT NULL AND c IS NOT NULL PRIMARY 
KEY (c,k)".format(view),
+                                timeout=60)
                 self._wait_for_view(keyspace, "mv{}".format(view))
 
         def drop_keyspace(session, keyspace="ks1"):
             logger.debug("drop keyspace {}".format(keyspace))
-            session.execute("DROP KEYSPACE IF EXISTS {}".format(keyspace))
+            session.execute("DROP KEYSPACE IF EXISTS {}".format(keyspace),
+                            timeout=60)
 
         def drop_views(session, views):
             logger.debug("drop all views")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to