You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ed...@apache.org on 2022/09/15 14:14:07 UTC

[cassandra-dtest] branch trunk updated: Fix flaky test_archive_commitlog_point_in_time Patch by Ekaterina Dimitrova; reviewed by Andres de la Pena for CASSANDRA-17889

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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new 35bd7ae6 Fix flaky test_archive_commitlog_point_in_time Patch by Ekaterina Dimitrova; reviewed by Andres de la Pena for CASSANDRA-17889
35bd7ae6 is described below

commit 35bd7ae6f6616f3cd4f32c0dadbcc0c87883a833
Author: Ekaterina Dimitrova <ek...@datastax.com>
AuthorDate: Wed Sep 14 10:43:35 2022 -0400

    Fix flaky test_archive_commitlog_point_in_time
    Patch by Ekaterina Dimitrova; reviewed by Andres de la Pena for CASSANDRA-17889
---
 tools/hacks.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/hacks.py b/tools/hacks.py
index 27766c7d..89efb75a 100644
--- a/tools/hacks.py
+++ b/tools/hacks.py
@@ -21,7 +21,7 @@ def _files_in(directory):
 
 def advance_to_next_cl_segment(session, commitlog_dir,
                                keyspace_name='ks', table_name='junk_table',
-                               timeout=120):
+                               timeout=180):
     """
     This is a hack to work around problems like CASSANDRA-11811.
 
@@ -57,8 +57,8 @@ def advance_to_next_cl_segment(session, commitlog_dir,
         elapsed = time.time() - start
         rate_limited_debug_logger('  commitlog-advancing load step has lasted {s:.2f}s'.format(s=elapsed))
         assert (
-            time.time() <= stop_time), "It's been over a {s}s and we haven't written a new " + \
-            "commitlog segment. Something is wrong.".format(s=timeout)
+            time.time() <= stop_time), ("It's been over {s}s and we haven't written a new " +
+                                        "commitlog segment. Something is wrong.").format(s=timeout)
         execute_concurrent(
             session,
             ((prepared_insert, ()) for _ in range(1000)),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org