Unit Test Results.

Designed for use with JUnit and Ant.

Class dtest_jdk11_python3.8_cythonno_x86_64_9_64

NameTestsErrorsFailuresSkippedTime(s)Time StampHost
8_cythonno_x86_64_9_64170121176.8702024-11-10T22:04:59.5837463b4fb47bbdff

Failures

NameStatusTypeTime(s)
test_fail_without_replaceFailureccmlib.node.TimeoutError: 10 Nov 2024 22:20:32 [node3] after 20.02/20 seconds Missing: ['Use cassandra.replace_address if you want to replace this node'] not found in system.log: Head: INFO [main] 2024-11-10 22:18:32,747 YamlConfigura Tail: ... UP WARN [GossipTasks:1] 2024-11-10 22:20:26,392 FailureDetector.java:355 - Not marking nodes down due to local pause of 6904110547ns > 5000000000ns

self = <replace_address_test.TestReplaceAddress object at 0x7fd93008e1f0>

@since('3.6')
def test_fail_without_replace(self):
"""
When starting a node from a clean slate with the same address as
an existing down node, the node should error out even when
auto_bootstrap = false (or the node is a seed) and tell the user
to use replace_address.
@jira_ticket CASSANDRA-10134
"""
self.fixture_dtest_setup.ignore_log_patterns = list(self.fixture_dtest_setup.ignore_log_patterns) + [
r'Exception encountered during startup']

self._setup(n=3)
self._insert_data()
node1, node2, node3 = self.cluster.nodelist()

mark = None
for auto_bootstrap in (True, False):
logger.debug("Stopping node 3.")
node3.stop(gently=False)

# completely delete the data, commitlog, and saved caches
for d in chain([os.path.join(node3.get_path(), "commitlogs")],
[os.path.join(node3.get_path(), "saved_caches")],
node3.data_directories()):
if os.path.exists(d):
rmtree(d)

node3.set_configuration_options(values={'auto_bootstrap': auto_bootstrap})
logger.debug("Starting node 3 with auto_bootstrap = {val}".format(val=auto_bootstrap))
node3.start(wait_other_notice=False)
> node3.watch_log_for('Use cassandra.replace_address if you want to replace this node', from_mark=mark, timeout=20)

replace_address_test.py:398:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:610: in watch_log_for
TimeoutError.raise_if_passed(start=start, timeout=timeout, node=self.name,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

start = 1731277212.5182626, timeout = 20
msg = "Missing: ['Use cassandra.replace_address if you want to replace this node'] not found in system.log:\n Head: INFO [m...-10 22:20:26,392 FailureDetector.java:355 - Not marking nodes down due to local pause of 6904110547ns > 5000000000ns\n"
node = 'node3'

@staticmethod
def raise_if_passed(start, timeout, msg, node=None):
if start + timeout < time.time():
> raise TimeoutError.create(start, timeout, msg, node)
E ccmlib.node.TimeoutError: 10 Nov 2024 22:20:32 [node3] after 20.02/20 seconds Missing: ['Use cassandra.replace_address if you want to replace this node'] not found in system.log:
E Head: INFO [main] 2024-11-10 22:18:32,747 YamlConfigura
E Tail: ... UP
E WARN [GossipTasks:1] 2024-11-10 22:20:26,392 FailureDetector.java:355 - Not marking nodes down due to local pause of 6904110547ns > 5000000000ns

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:56: TimeoutError
142.517
Properties »