Unit Test Results.

Designed for use with JUnit and Ant.

All Tests

ClassNameStatusTypeTime(s)
8_cythonno_x86_64_1_8test_network_topology_strategySuccess295.701
8_cythonno_x86_64_1_8test_disk_balance_bootstrapSuccess163.951
8_cythonno_x86_64_1_8test_throttled_partition_updateSuccess655.823
8_cythonno_x86_64_1_8test_replace_nonexistent_nodeSuccess48.825
8_cythonno_x86_64_1_8test_stop_decommission_too_few_replicas_multi_dcSuccess116.515
8_cythonno_x86_64_2_8test_network_topology_strategy_each_quorumSuccess179.654
8_cythonno_x86_64_2_8test_add_dc_after_mv_simple_replicationSuccess201.743
8_cythonno_x86_64_2_8test_really_complex_repairSuccess270.439
8_cythonno_x86_64_2_8test_resume_failed_replaceSuccess171.389
8_cythonno_x86_64_2_8test_transient_full_merge_readSuccess73.241
8_cythonno_x86_64_3_8test_simple_strategy_usersSuccess99.511
8_cythonno_x86_64_3_8test_add_dc_after_mv_network_replicationSuccess219.792
8_cythonno_x86_64_3_8test_pending_rangeSuccess74.141
8_cythonno_x86_64_3_8test_restart_failed_replace_with_reset_resume_stateSuccess289.088
8_cythonno_x86_64_3_8test_sstable_marking_not_intersecting_all_rangesSuccess74.914
8_cythonno_x86_64_4_8test_simple_strategy_each_quorum_usersSuccess61.963
8_cythonno_x86_64_4_8test_add_node_after_mvSuccess121.828
8_cythonno_x86_64_4_8test_replace_stopped_nodeSuccess200.793
8_cythonno_x86_64_4_8test_restart_failed_replaceSuccess348.791
8_cythonno_x86_64_4_8test_initial_empty_repair_tablesSkippedhangs CI

/home/cassandra/cassandra-dtest/repair_tests/repair_test.py:1416: hangs CI
0.001
8_cythonno_x86_64_5_8test_network_topology_strategy_usersSuccess184.535
8_cythonno_x86_64_5_8test_add_node_after_wide_mv_with_range_deletionsSuccess142.059
8_cythonno_x86_64_5_8test_replace_shutdown_nodeSuccess183.076
8_cythonno_x86_64_5_8test_network_topologySuccess175.799
8_cythonno_x86_64_5_8test_repair_parent_tableSuccess70.132
8_cythonno_x86_64_6_8test_network_topology_strategy_each_quorum_usersSuccess143.627
8_cythonno_x86_64_6_8test_add_node_after_very_wide_mvSuccess384.960
8_cythonno_x86_64_6_8test_replace_stopped_node_same_addressSuccess174.687
8_cythonno_x86_64_6_8test_rf_collapse_gossiping_property_file_snitch_multi_dcSuccess195.351
8_cythonno_x86_64_6_8test_repair_tableSuccess73.676
8_cythonno_x86_64_7_8test_network_topology_strategy_countersSuccess150.071
8_cythonno_x86_64_7_8test_add_write_survey_node_after_mvSuccess127.488
8_cythonno_x86_64_7_8test_replace_first_bootSuccess192.015
8_cythonno_x86_64_7_8test_rf_expand_gossiping_property_file_snitch_multi_dcSuccess199.973
8_cythonno_x86_64_8_8test_network_topology_strategy_each_quorum_countersSuccess78.013
8_cythonno_x86_64_8_8test_complex_repairSuccess295.486
8_cythonno_x86_64_8_8test_replace_active_nodeSuccess92.683
8_cythonno_x86_64_8_8test_multidatacenter_local_quorumSuccess117.053
8_cythonno_x86_64_1_8test_network_topology_strategySuccess253.000
8_cythonno_x86_64_1_8test_disk_balance_bootstrapSuccess162.137
8_cythonno_x86_64_1_8test_throttled_partition_updateSuccess628.187
8_cythonno_x86_64_1_8test_replace_nonexistent_nodeSuccess47.697
8_cythonno_x86_64_1_8test_stop_decommission_too_few_replicas_multi_dcSuccess112.055
8_cythonno_x86_64_2_8test_network_topology_strategy_each_quorumSuccess173.639
8_cythonno_x86_64_2_8test_add_dc_after_mv_simple_replicationSuccess211.296
8_cythonno_x86_64_2_8test_really_complex_repairSuccess256.934
8_cythonno_x86_64_2_8test_resume_failed_replaceSuccess163.640
8_cythonno_x86_64_2_8test_transient_full_merge_readSuccess62.350
8_cythonno_x86_64_3_8test_simple_strategy_usersSuccess108.715
8_cythonno_x86_64_3_8test_add_dc_after_mv_network_replicationSuccess208.589
8_cythonno_x86_64_3_8test_pending_rangeSuccess73.386
8_cythonno_x86_64_3_8test_restart_failed_replace_with_reset_resume_stateSuccess287.791
8_cythonno_x86_64_3_8test_sstable_marking_not_intersecting_all_rangesSuccess69.615
8_cythonno_x86_64_4_8test_simple_strategy_each_quorum_usersSuccess62.515
8_cythonno_x86_64_4_8test_add_node_after_mvSuccess115.690
8_cythonno_x86_64_4_8test_replace_stopped_nodeSuccess186.108
8_cythonno_x86_64_4_8test_restart_failed_replaceSuccess333.052
8_cythonno_x86_64_4_8test_initial_empty_repair_tablesSkippedhangs CI

/home/cassandra/cassandra-dtest/repair_tests/repair_test.py:1416: hangs CI
0.001
8_cythonno_x86_64_5_8test_network_topology_strategy_usersFailureFailed: Timeout >900.0s

self = <consistency_test.TestAccuracy object at 0x7f4b5f7f4250>

@pytest.mark.resource_intensive
def test_network_topology_strategy_users(self):
"""
Test for multiple datacenters, users table.
"""
self.nodes = [3, 3]
self.rf = OrderedDict([('dc1', 3), ('dc2', 3)])

combinations = [
(ConsistencyLevel.ALL, ConsistencyLevel.ALL),
(ConsistencyLevel.QUORUM, ConsistencyLevel.QUORUM),
(ConsistencyLevel.EACH_QUORUM, ConsistencyLevel.LOCAL_QUORUM),
(ConsistencyLevel.LOCAL_QUORUM, ConsistencyLevel.LOCAL_QUORUM),
(ConsistencyLevel.ALL, ConsistencyLevel.ONE),
(ConsistencyLevel.ONE, ConsistencyLevel.ALL),
(ConsistencyLevel.QUORUM, ConsistencyLevel.ONE),
(ConsistencyLevel.ONE, ConsistencyLevel.QUORUM),
(ConsistencyLevel.LOCAL_QUORUM, ConsistencyLevel.ONE),
(ConsistencyLevel.ONE, ConsistencyLevel.LOCAL_QUORUM),
(ConsistencyLevel.EACH_QUORUM, ConsistencyLevel.ONE),
(ConsistencyLevel.TWO, ConsistencyLevel.TWO),
(ConsistencyLevel.ONE, ConsistencyLevel.THREE),
(ConsistencyLevel.THREE, ConsistencyLevel.ONE),
(ConsistencyLevel.ANY, ConsistencyLevel.ONE),
(ConsistencyLevel.ONE, ConsistencyLevel.ONE),
(ConsistencyLevel.ONE, ConsistencyLevel.TWO),
(ConsistencyLevel.TWO, ConsistencyLevel.ONE),
(ConsistencyLevel.QUORUM, ConsistencyLevel.SERIAL, ConsistencyLevel.SERIAL),
(ConsistencyLevel.LOCAL_QUORUM, ConsistencyLevel.LOCAL_SERIAL, ConsistencyLevel.LOCAL_SERIAL),
(ConsistencyLevel.QUORUM, ConsistencyLevel.LOCAL_SERIAL, ConsistencyLevel.SERIAL),
(ConsistencyLevel.LOCAL_QUORUM, ConsistencyLevel.SERIAL, ConsistencyLevel.LOCAL_SERIAL),
]

logger.debug("Testing multiple dcs, users")
> self._run_test_function_in_parallel(TestAccuracy.Validation.validate_users, self.nodes, list(self.rf.values()), combinations),

consistency_test.py:651:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <consistency_test.TestAccuracy object at 0x7f4b5f7f4250>
valid_fcn = <function TestAccuracy.Validation.validate_users at 0x7f4b5f7dd1f0>
nodes = [3, 3], rf_factors = [3, 3]
combinations = [(5, 5), (4, 4), (7, 6), (6, 6), (5, 1), (1, 5), ...]

def _run_test_function_in_parallel(self, valid_fcn, nodes, rf_factors, combinations):
"""
Run a test function in parallel.
"""

requires_local_reads = False
for combination in combinations:
for i, _ in enumerate(nodes):
expected_consistency = self.get_expected_consistency(i, rf_factors, combination[0], combination[1])
if not expected_consistency.is_strong:
# if at least one combination does not reach strong consistency, in order to validate weak
# consistency we require local reads, see CASSANDRA-12092 for details.
requires_local_reads = True
break

if requires_local_reads:
break

self._start_cluster(save_sessions=True, requires_local_reads=requires_local_reads)

input_queue = queue.Queue()
exceptions_queue = queue.Queue()

def run():
while not input_queue.empty():
try:
v = TestAccuracy.Validation(self, self.sessions, nodes, rf_factors, *input_queue.get(block=False))
valid_fcn(v)
except queue.Empty:
pass
except Exception:
exceptions_queue.put(sys.exc_info())

start = 0
num_keys = 50
for combination in combinations:
input_queue.put((start, start + num_keys) + combination)
start += num_keys

threads = []
for n in range(0, 8):
t = threading.Thread(target=run)
t.setDaemon(True)
t.start()
threads.append(t)

logger.debug("Waiting for workers to complete")
while exceptions_queue.empty():
> time.sleep(0.1)
E Failed: Timeout >900.0s

consistency_test.py:559: Failed
913.870
8_cythonno_x86_64_5_8test_add_node_after_wide_mv_with_range_deletionsSuccess489.845
8_cythonno_x86_64_5_8test_replace_shutdown_nodeSuccess7.492
8_cythonno_x86_64_5_8test_replace_shutdown_nodeFailureccmlib.node.NodeError: C* process with 9816 is terminated

self = <replace_address_test.TestReplaceAddress object at 0x7f4b5f70a250>

@pytest.mark.resource_intensive
def test_replace_shutdown_node(self):
"""
@jira_ticket CASSANDRA-9871
Test that we can replace a node that is shutdown gracefully.
"""
> self._test_replace_node(gently=True)

replace_address_test.py:289:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
replace_address_test.py:313: in _test_replace_node
self._do_replace(same_address=same_address)
replace_address_test.py:122: in _do_replace
self.replacement_node.start(jvm_args=extra_jvm_args,
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:928: in start
self.wait_for_binary_interface(from_mark=self.mark)
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:711: in wait_for_binary_interface
self.watch_log_for("Starting listening for CQL clients", **kwargs)
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:608: in watch_log_for
self.raise_node_error_if_cassandra_process_is_terminated()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7f4b5ed12610>

def raise_node_error_if_cassandra_process_is_terminated(self):
if not self._is_pid_running():
msg = "C* process with {pid} is terminated".format(pid=self.pid)
common.debug(msg)
> raise NodeError(msg)
E ccmlib.node.NodeError: C* process with 9816 is terminated

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:692: NodeError
257.479
8_cythonno_x86_64_5_8test_network_topologySuccess365.497
8_cythonno_x86_64_5_8test_repair_parent_tableSuccess354.012
8_cythonno_x86_64_6_8test_network_topology_strategy_each_quorum_usersSuccess72.974
8_cythonno_x86_64_6_8test_add_node_after_very_wide_mvSuccess306.148
8_cythonno_x86_64_6_8test_replace_stopped_node_same_addressSuccess171.950
8_cythonno_x86_64_6_8test_rf_collapse_gossiping_property_file_snitch_multi_dcSuccess179.944
8_cythonno_x86_64_6_8test_repair_tableSuccess65.772
8_cythonno_x86_64_7_8test_network_topology_strategy_countersSuccess117.500
8_cythonno_x86_64_7_8test_add_write_survey_node_after_mvSuccess122.941
8_cythonno_x86_64_7_8test_replace_first_bootSuccess190.594
8_cythonno_x86_64_7_8test_rf_expand_gossiping_property_file_snitch_multi_dcSuccess190.011
8_cythonno_x86_64_8_8test_network_topology_strategy_each_quorum_countersSuccess75.437
8_cythonno_x86_64_8_8test_complex_repairSuccess263.594
8_cythonno_x86_64_8_8test_replace_active_nodeSuccess77.361
8_cythonno_x86_64_8_8test_multidatacenter_local_quorumSuccess83.745