This is an automated email from the ASF dual-hosted git repository. brandonwilliams 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 20ebcb23 Byteman halts instead of exits 20ebcb23 is described below commit 20ebcb23662d1b2023839a6662c68800dda120a0 Author: Brandon Williams <brandonwilli...@apache.org> AuthorDate: Tue Jun 18 10:55:36 2024 -0500 Byteman halts instead of exits Patch by brandonwilliams; reviewed by maedhroz and smiklosovic for CASSANDRA-19697 --- byteman/merge_schema_failure_4x.btm | 2 +- byteman/merge_schema_failure_5_1.btm | 2 +- materialized_views_test.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/byteman/merge_schema_failure_4x.btm b/byteman/merge_schema_failure_4x.btm index bee5c3c7..996852de 100644 --- a/byteman/merge_schema_failure_4x.btm +++ b/byteman/merge_schema_failure_4x.btm @@ -8,5 +8,5 @@ AT EXIT # set flag to only run this rule once. IF TRUE DO - System.exit(0) + Runtime.getRuntime().halt(0); ENDRULE diff --git a/byteman/merge_schema_failure_5_1.btm b/byteman/merge_schema_failure_5_1.btm index 78eb428b..2adabfb7 100644 --- a/byteman/merge_schema_failure_5_1.btm +++ b/byteman/merge_schema_failure_5_1.btm @@ -8,5 +8,5 @@ AT EXIT # set flag to only run this rule once. IF TRUE DO - System.exit(0) + Runtime.getRuntime().halt(0); ENDRULE diff --git a/materialized_views_test.py b/materialized_views_test.py index 474a2540..a6c58c1f 100644 --- a/materialized_views_test.py +++ b/materialized_views_test.py @@ -53,7 +53,7 @@ class TestMaterializedViews(Tester): def prepare(self, user_table=False, rf=1, options=None, nodes=3, install_byteman=False, **kwargs): cluster = self.cluster - cluster.set_configuration_options({'enable_materialized_views': 'true'}) + cluster.set_configuration_options({'enable_materialized_views': 'true', 'commitlog_sync_period_in_ms': 1000}) cluster.populate([nodes, 0], install_byteman=install_byteman) if options: cluster.set_configuration_options(values=options) @@ -978,7 +978,7 @@ class TestMaterializedViews(Tester): node = self.cluster.nodelist()[0] self._insert_data(session) - + time.sleep(1) assert_one( session, "SELECT * FROM users_by_state WHERE state = 'TX' AND username = 'user1'", --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org