Unit Test Results.

Designed for use with JUnit and Ant.

Class dtest-latest_jdk17_python3.8_cythonno_x86_64_10_64

NameTestsErrorsFailuresSkippedTime(s)Time StampHost
8_cythonno_x86_64_10_64170151223.9842024-05-01T23:55:12.509931efdf1df6e548

Failures

NameStatusTypeTime(s)
test_bootstrap_with_reset_bootstrap_stateFailureccmlib.node.NodeError: node1 is already running

self = <bootstrap_test.TestBootstrap object at 0x7f1a15279580>

@since('2.2')
def test_bootstrap_with_reset_bootstrap_state(self):
"""Test bootstrap with resetting bootstrap progress"""
cluster = self.cluster
cluster.set_environment_variable('CASSANDRA_TOKEN_PREGENERATION_DISABLED', 'True')
cluster.set_configuration_options(values={'stream_throughput_outbound_megabits_per_sec': 1})
cluster.populate(2).start()

node1 = cluster.nodes['node1']
node1.stress(['write', 'n=100K', '-schema', 'replication(factor=2)'])
node1.flush()

# kill node1 in the middle of streaming to let it fail
t = InterruptBootstrap(node1)
t.start()

# start bootstrapping node3 and wait for streaming
node3 = new_node(cluster)
try:
node3.start()
except NodeError:
pass # node doesn't start as expected
t.join()
> node1.start()

bootstrap_test.py:504:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7f1a1409bfd0>, join_ring = True
no_wait = False, verbose = False, update_pid = True, wait_other_notice = True
replace_token = None, replace_address = None
jvm_args = ['-Dcassandra.migration_task_wait_in_seconds=6']
wait_for_binary_proto = False, profile_options = None, use_jna = False
quiet_start = False, allow_root = False, set_migration_task = True
jvm_version = None

def start(self,
join_ring=True,
no_wait=False,
verbose=False,
update_pid=True,
wait_other_notice=True,
replace_token=None,
replace_address=None,
jvm_args=None,
wait_for_binary_proto=False,
profile_options=None,
use_jna=False,
quiet_start=False,
allow_root=False,
set_migration_task=True,
jvm_version=None):
"""
Start the node. Options includes:
- join_ring: if false, start the node with -Dcassandra.join_ring=False
- no_wait: by default, this method returns when the node is started and listening to clients.
If no_wait=True, the method returns sooner.
- wait_other_notice: if truthy, this method returns only when all other live node of the cluster
have marked this node UP. if an integer, sets the timeout for how long to wait
- replace_token: start the node with the -Dcassandra.replace_token option.
- replace_address: start the node with the -Dcassandra.replace_address option.
"""
if jvm_args is None:
jvm_args = []

if set_migration_task and self.cluster.cassandra_version() >= '3.0.1':
jvm_args += ['-Dcassandra.migration_task_wait_in_seconds={}'.format(len(self.cluster.nodes) * 2)]

# Validate Windows env
if common.is_modern_windows_install(self.cluster.version()) and not common.is_ps_unrestricted():
raise NodeError("PS Execution Policy must be unrestricted when running C* 2.1+")

if not common.is_win() and quiet_start:
common.warning("Tried to set Windows quiet start behavior, but we're not running on Windows.")

if self.is_running():
> raise NodeError("{} is already running".format(self.name))
E ccmlib.node.NodeError: node1 is already running

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:787: NodeError
706.247
Properties »