Unit Test Results.

Designed for use with JUnit and Ant.

All Failures

ClassNameStatusTypeTime(s)
8_cythonno_x86_64_55_64test_assassinate_valid_nodeFailureccmlib.node.TimeoutError: 17 Dec 2024 04:29:07 [node1] after 120.93/120 seconds Missing: ['Starting listening for CQL clients'] not found in system.log: Head: INFO [main] 2024-12-17 04:26:59,389 YamlConfigura Tail: ...alue format; For more information, please refer to NEWS.txt INFO [main] 2024-12-17 04:29:04,114 Gossiper.java:1939 - Waiting for gossip to settle...

self = <gossip_test.TestGossip object at 0x7fdc4c4009a0>

def test_assassinate_valid_node(self):
"""
@jira_ticket CASSANDRA-16588
Test that after taking two non-seed nodes down and assassinating
one of them, the other can come back up.
"""
cluster = self.cluster

> cluster.populate(5).start()

gossip_test.py:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:550: in start
node.watch_log_for(start_message, timeout=timeout, process=p, verbose=verbose, from_mark=mark,
../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 = 1734409626.6226242, timeout = 120
msg = "Missing: ['Starting listening for CQL clients'] not found in system.log:\n Head: INFO [main] 2024-12-17 04:26:59,389... please refer to NEWS.txt\nINFO [main] 2024-12-17 04:29:04,114 Gossiper.java:1939 - Waiting for gossip to settle...\n"
node = 'node1'

@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: 17 Dec 2024 04:29:07 [node1] after 120.93/120 seconds Missing: ['Starting listening for CQL clients'] not found in system.log:
E Head: INFO [main] 2024-12-17 04:26:59,389 YamlConfigura
E Tail: ...alue format; For more information, please refer to NEWS.txt
E INFO [main] 2024-12-17 04:29:04,114 Gossiper.java:1939 - Waiting for gossip to settle...

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:56: TimeoutError
170.552
8_cythonno_x86_64_58_64test_interrupt_build_processFailureccmlib.node.TimeoutError: 17 Dec 2024 04:28:22 [node1] after 120.56/120 seconds Missing: ['Starting listening for CQL clients'] not found in system.log: Head: INFO [main] 2024-12-17 04:26:27,996 YamlConfigura Tail: ...e /127.0.0.3:7000 is now part of the cluster INFO [GossipStage:1] 2024-12-17 04:28:21,959 Gossiper.java:1139 - InetAddress /127.0.0.3:7000 is now UP

self = <materialized_views_test.TestMaterializedViews object at 0x7ffb6d844f10>

def test_interrupt_build_process(self):
"""Test that an interrupted MV build process is resumed as it should"""

options = {'hinted_handoff_enabled': False}
if self.cluster.version() >= '4':
options['concurrent_materialized_view_builders'] = 4

> session = self.prepare(options=options, install_byteman=True)

materialized_views_test.py:1096:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
materialized_views_test.py:60: in prepare
cluster.start(jvm_args=['-Dcassandra.reset_bootstrap_progress=false'])
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:550: in start
node.watch_log_for(start_message, timeout=timeout, process=p, verbose=verbose, from_mark=mark,
../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 = 1734409582.4347672, timeout = 120
msg = "Missing: ['Starting listening for CQL clients'] not found in system.log:\n Head: INFO [main] 2024-12-17 04:26:27,996...he cluster\nINFO [GossipStage:1] 2024-12-17 04:28:21,959 Gossiper.java:1139 - InetAddress /127.0.0.3:7000 is now UP\n"
node = 'node1'

@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: 17 Dec 2024 04:28:22 [node1] after 120.56/120 seconds Missing: ['Starting listening for CQL clients'] not found in system.log:
E Head: INFO [main] 2024-12-17 04:26:27,996 YamlConfigura
E Tail: ...e /127.0.0.3:7000 is now part of the cluster
E INFO [GossipStage:1] 2024-12-17 04:28:21,959 Gossiper.java:1139 - InetAddress /127.0.0.3:7000 is now UP

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:56: TimeoutError
147.713
8_cythonno_x86_64_62_64test_compaction_throughputFailureAssertionError: assert (5.0 + 0.5) >= 5.538 + where 5.0 = float('5')

self = <compaction_test.TestCompaction object at 0x7f90e6ca34c0>

def test_compaction_throughput(self):
"""
Test setting compaction throughput.
Set throughput, insert data and ensure compaction performance corresponds.
"""
cluster = self.cluster
cluster.populate(1).start()
[node1] = cluster.nodelist()

# disableautocompaction only disables compaction for existing tables,
# so initialize stress tables with stress first
stress_write(node1, keycount=1)
node1.nodetool('disableautocompaction')

stress_write(node1, keycount=200000 * cluster.data_dir_count)

threshold = "5"
node1.nodetool('setcompactionthroughput -- ' + threshold)

node1.flush()
if node1.get_cassandra_version() < '2.2':
log_file = 'system.log'
else:
log_file = 'debug.log'
mark = node1.mark_log(filename=log_file)
node1.compact()
matches = node1.watch_log_for('Compacted', from_mark=mark, filename=log_file)

stringline = matches[0]

throughput_pattern = '{}={avgthroughput:f}{units}/s'
m = parse.search(throughput_pattern, stringline)
avgthroughput = m.named['avgthroughput']
found_units = m.named['units']

unit_conversion_dct = {
"MB": 1,
"MiB": 1,
"KiB": 1. / 1024,
"GiB": 1024,
"B": 1. / (1024 * 1024),
}

units = ['MB'] if cluster.version() < LooseVersion('3.6') else ['B', 'KiB', 'MiB', 'GiB']
assert found_units in units

logger.debug(avgthroughput)
avgthroughput_mb = unit_conversion_dct[found_units] * float(avgthroughput)

# The throughput in the log is computed independantly from the throttling and on the output files while
# throttling is on the input files, so while that throughput shouldn't be higher than the one set in
# principle, a bit of wiggle room is expected
> assert float(threshold) + 0.5 >= avgthroughput_mb
E AssertionError: assert (5.0 + 0.5) >= 5.538
E + where 5.0 = float('5')

compaction_test.py:302: AssertionError
86.650
8_cythonno_x86_64_63_64test_mv_with_default_ttl_without_flushFailureccmlib.node.TimeoutError: 17 Dec 2024 04:54:37 [node1] after 120.07/120 seconds Missing: ['Starting listening for CQL clients'] not found in system.log: Head: INFO [main] 2024-12-17 04:52:41,602 YamlConfigura Tail: ...history INFO [main] 2024-12-17 04:54:35,070 SystemKeyspaceMigrator41.java:234 - Migrated 0 rows from legacy compaction_history to compaction_history

self = <materialized_views_test.TestMaterializedViews object at 0x7ff462250670>

@since('3.0')
def test_mv_with_default_ttl_without_flush(self):
> self._test_mv_with_default_ttl(False)

materialized_views_test.py:1337:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
materialized_views_test.py:1344: in _test_mv_with_default_ttl
session = self.prepare(rf=3, nodes=3, options={'hinted_handoff_enabled': False}, consistency_level=ConsistencyLevel.QUORUM)
materialized_views_test.py:60: in prepare
cluster.start(jvm_args=['-Dcassandra.reset_bootstrap_progress=false'])
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:550: in start
node.watch_log_for(start_message, timeout=timeout, process=p, verbose=verbose, from_mark=mark,
../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 = 1734411157.5378458, timeout = 120
msg = "Missing: ['Starting listening for CQL clients'] not found in system.log:\n Head: INFO [main] 2024-12-17 04:52:41,602...4:54:35,070 SystemKeyspaceMigrator41.java:234 - Migrated 0 rows from legacy compaction_history to compaction_history\n"
node = 'node1'

@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: 17 Dec 2024 04:54:37 [node1] after 120.07/120 seconds Missing: ['Starting listening for CQL clients'] not found in system.log:
E Head: INFO [main] 2024-12-17 04:52:41,602 YamlConfigura
E Tail: ...history
E INFO [main] 2024-12-17 04:54:35,070 SystemKeyspaceMigrator41.java:234 - Migrated 0 rows from legacy compaction_history to compaction_history

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