You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ruslan Fomkin (Jira)" <ji...@apache.org> on 2021/09/03 15:13:00 UTC
[jira] [Created] (CASSANDRA-16915) Delay is not applied in the
dtest to test bootstrap delay
Ruslan Fomkin created CASSANDRA-16915:
-----------------------------------------
Summary: Delay is not applied in the dtest to test bootstrap delay
Key: CASSANDRA-16915
URL: https://issues.apache.org/jira/browse/CASSANDRA-16915
Project: Cassandra
Issue Type: Bug
Components: Test/dtest/python
Reporter: Ruslan Fomkin
Test [test_bootstrap_waits_for_streaming_to_finish|https://github.com/apache/cassandra-dtest/blob/trunk/bootstrap_test.py#L267] supposed to delay bootstrap of {{node2}} by using byteman :
{code:java}
node2 = new_node(cluster, byteman_port='4200')
node2.update_startup_byteman_script('./byteman/bootstrap_5s_sleep.btm')
{code}
where [byteman code|https://github.com/apache/cassandra-dtest/blob/trunk/byteman/bootstrap_5s_sleep.btm] is:
{code:java}
RULE Sleep 5s when finishing bootstrap
CLASS org.apache.cassandra.service.StorageService
METHOD bootstrapFinished
AT ENTRY
IF NOT flagged("done")
DO
flag("done");
Thread.sleep(5000)
ENDRULE
{code}
However, I found that this byteman rule is not applied.
For example, I changed the rule body into:
{code:java}
IF TRUE
DO
asfa;adfa;
flag("done");
throw new RuntimeException("Test");
Thread.sleep(50000)
ENDRULE{code}
So my conclusion is that the delay is not applied. I haven't investigated if it is the issue in calling {{update_startup_byteman_script}}, which is implemented in CCM, or in the implementation inside CCM.
This issue might exist in other similar tests.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org