You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Josh McKenzie (Jira)" <ji...@apache.org> on 2022/01/26 19:19:00 UTC

[jira] [Created] (CASSANDRA-17308) Test Failure: dtest-upgrade.upgrade_tests.bootstrap_upgrade_test.TestBootstrapUpgrade.test_failed_bootstrap_wiped_node_can_join

Josh McKenzie created CASSANDRA-17308:
-----------------------------------------

             Summary: Test Failure: dtest-upgrade.upgrade_tests.bootstrap_upgrade_test.TestBootstrapUpgrade.test_failed_bootstrap_wiped_node_can_join
                 Key: CASSANDRA-17308
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17308
             Project: Cassandra
          Issue Type: Bug
          Components: Test/dtest/python
            Reporter: Josh McKenzie


https://ci-cassandra.apache.org/job/Cassandra-4.0/308/testReport/dtest-upgrade.upgrade_tests.bootstrap_upgrade_test/TestBootstrapUpgrade/test_failed_bootstrap_wiped_node_can_join/

Failed 1 times in the last 24 runs. Flakiness: 4%, Stability: 95%

Error Message
assert not True  +  where True = <bound method Node.is_running of <ccmlib.node.Node object at 0x7f47fc3591f0>>()  +    where <bound method Node.is_running of <ccmlib.node.Node object at 0x7f47fc3591f0>> = <ccmlib.node.Node object at 0x7f47fc3591f0>.is_running

{code}
Stacktrace
self = <upgrade_tests.bootstrap_upgrade_test.TestBootstrapUpgrade object at 0x7f47fc370ee0>

    def test_failed_bootstrap_wiped_node_can_join(self):
        """
            @jira_ticket CASSANDRA-9765
            Test that if a node fails to bootstrap, it can join the cluster even if the data is wiped.
            """
        cluster = self.cluster
        cluster.set_environment_variable('CASSANDRA_TOKEN_PREGENERATION_DISABLED', 'True')
        cluster.populate(1)
        cluster.set_configuration_options(values={'stream_throughput_outbound_megabits_per_sec': 1})
        cluster.start()
    
        stress_table = 'keyspace1.standard1'
    
        # write some data, enough for the bootstrap to fail later on
        node1 = cluster.nodelist()[0]
        node1.stress(['write', 'n=100K', 'no-warmup', '-rate', 'threads=8'])
        node1.flush()
    
        session = self.patient_cql_connection(node1)
        original_rows = list(session.execute("SELECT * FROM {}".format(stress_table,)))
    
        # Add a new node, bootstrap=True ensures that it is not a seed
        node2 = new_node(cluster, bootstrap=True)
    
        # kill node2 in the middle of bootstrap
        t = KillOnBootstrap(node2)
        t.start()
    
        node2.start()
        t.join()
>       assert not node2.is_running()
E       assert not True
E        +  where True = <bound method Node.is_running of <ccmlib.node.Node object at 0x7f47fc3591f0>>()
E        +    where <bound method Node.is_running of <ccmlib.node.Node object at 0x7f47fc3591f0>> = <ccmlib.node.Node object at 0x7f47fc3591f0>.is_running

bootstrap_test.py:742: AssertionError
{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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