test_fail_when_seed | Failure | ccmlib.node.TimeoutError: 27 Nov 2024 09:35:21 [node3] after 20.04/20 seconds Missing: ['Replacing a node without bootstrapping risks invalidating consistency guarantees'] not found in system.log:
Head: INFO [main] 2024-11-27 09:35:07,028 YamlConfigura
Tail: ...milliseconds
INFO [main] 2024-11-27 09:35:16,576 MonotonicClock.java:351 - Scheduling approximate time-check task with a precision of 2 milliseconds
self = <replace_address_test.TestReplaceAddress object at 0x7f504e59cb50>
@since('3.0')
def test_fail_when_seed(self):
"""
When a node is a seed replace should fail
@jira_ticket CASSANDRA-14463
"""
self.fixture_dtest_setup.ignore_log_patterns = list(self.fixture_dtest_setup.ignore_log_patterns) + [
r'Couldn\'t find table with id 5bc52802-de25-35ed-aeab-188eecebb090', # system_auth
r'Exception encountered during startup',
r'Unknown endpoint'
]
# see CASSANDRA-17611
if self.cluster.version() < '4.0':
self.fixture_dtest_setup.ignore_log_patterns = list(self.fixture_dtest_setup.ignore_log_patterns) + [
r'RejectedExecutionException']
self._setup(n=3)
node1, node2, node3 = self.cluster.nodelist()
self.cluster.seeds.append(node3.address())
node3.stop(gently=False)
mark = node3.mark_log()
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.start(jvm_args=["-Dcassandra.replace_address=" + node3.address()], wait_other_notice=False)
> node3.watch_log_for('Replacing a node without bootstrapping risks invalidating consistency guarantees', from_mark=mark, timeout=20)
replace_address_test.py:432:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../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 = 1732700101.5288508, timeout = 20
msg = "Missing: ['Replacing a node without bootstrapping risks invalidating consistency guarantees'] not found in system.log...-27 09:35:16,576 MonotonicClock.java:351 - Scheduling approximate time-check task with a precision of 2 milliseconds\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: 27 Nov 2024 09:35:21 [node3] after 20.04/20 seconds Missing: ['Replacing a node without bootstrapping risks invalidating consistency guarantees'] not found in system.log:
E Head: INFO [main] 2024-11-27 09:35:07,028 YamlConfigura
E Tail: ...milliseconds
E INFO [main] 2024-11-27 09:35:16,576 MonotonicClock.java:351 - Scheduling approximate time-check task with a precision of 2 milliseconds
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:56: TimeoutError | 167.387 |