Name | Status | Type | Time(s) |
test_more_order_by | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:656: test not applicable to env. | 0.001 |
test_conditional_delete | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3165: test not applicable to env. | 0.000 |
test_sparse_cf | Success | | 67.449 |
test_ticket_5230 | Success | | 62.225 |
test_select_list_key_multi_row | Skipped | awaiting CASSANDRA-7396
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5378: awaiting CASSANDRA-7396 | 0.000 |
test_multi_in_compact | Success | | 71.419 |
test_end_of_component_uses_oecBound | Success | | 61.911 |
test_collection_and_regular | Failure | Failed: Timeout >900.0s
self = <abc.TestCQLNodes3RF3_Upgrade_current_5_0_x_To_indev_5_0_x object at 0x7f26a89d1550>
def test_collection_and_regular(self):
cursor = self.prepare()
cursor.execute("""
CREATE TABLE test (
k int PRIMARY KEY,
l list<int>,
c int
)
""")
> for is_upgraded, cursor in self.do_upgrade(cursor):
upgrade_tests/cql_tests.py:2209:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <abc.TestCQLNodes3RF3_Upgrade_current_5_0_x_To_indev_5_0_x object at 0x7f26a89d1550>
session = <cassandra.cluster.Session object at 0x7f26a854b640>
use_thrift = False, return_nodes = False, kwargs = {}
node1 = <ccmlib.node.Node object at 0x7f26a6a90a00>
node2 = <ccmlib.node.Node object at 0x7f26a7afac40>
new_version_from_build = LooseVersion ('5.0')
sessions_and_meta = [(True, <cassandra.cluster.Session object at 0x7f26a8786280>), (False, <cassandra.cluster.Session object at 0x7f26a854b640>)]
s = (False, <cassandra.cluster.Session object at 0x7f26a854b640>)
def do_upgrade(self, session, use_thrift=False, return_nodes=False, **kwargs):
"""
Upgrades the first node in the cluster and returns a list of
(is_upgraded, Session) tuples. If `is_upgraded` is true, the
Session is connected to the upgraded node. If `return_nodes`
is True, a tuple of (is_upgraded, Session, Node) will be
returned instead.
"""
session.cluster.shutdown()
self.install_nodetool_legacy_parsing()
node1 = self.cluster.nodelist()[0]
node2 = self.cluster.nodelist()[1]
# stop the nodes, this can fail due to https://issues.apache.org/jira/browse/CASSANDRA-8220 on MacOS
# for the tests that run against 2.0. You will need to run those in Linux.
node1.drain()
node1.stop(gently=True)
# Ignore errors before upgrade on Windows
# We ignore errors from 2.1, because windows 2.1
# support is only beta. There are frequent log errors,
# related to filesystem interactions that are a direct result
# of the lack of full functionality on 2.1 Windows, and we dont
# want these to pollute our results.
if is_win() and self.cluster.version() <= '2.2':
node1.mark_log_for_errors()
logger.debug('upgrading node1 to {}'.format(self.UPGRADE_PATH.upgrade_version))
node1.set_install_dir(version=self.UPGRADE_PATH.upgrade_version)
self.install_legacy_parsing(node1)
# this is a bandaid; after refactoring, upgrades should account for protocol version
new_version_from_build = get_version_from_build(node1.get_install_dir())
# Check if a since annotation with a max_version was set on this test.
# The since decorator can only check the starting version of the upgrade,
# so here we check to new version of the upgrade as well.
if hasattr(self, 'max_version') and self.max_version is not None and new_version_from_build >= self.max_version:
pytest.skip("Skipping test, new version {} is equal to or higher than "
"max version {}".format(new_version_from_build, self.max_version))
if (new_version_from_build >= '3' and self.protocol_version is not None and self.protocol_version < 3):
pytest.skip('Protocol version {} incompatible '
'with Cassandra version {}'.format(self.protocol_version, new_version_from_build))
node1.set_log_level(logging.getLevelName(logging.root.level))
node1.set_configuration_options(values={'internode_compression': 'none'})
if use_thrift and node1.get_cassandra_version() < '4':
node1.set_configuration_options(values={'start_rpc': 'true'})
node1.start(wait_for_binary_proto=True)
sessions_and_meta = []
if self.CL:
session = self.patient_exclusive_cql_connection(node1, protocol_version=self.protocol_version, consistency_level=self.CL, **kwargs)
else:
session = self.patient_exclusive_cql_connection(node1, protocol_version=self.protocol_version, **kwargs)
session.set_keyspace('ks')
if return_nodes:
sessions_and_meta.append((True, session, node1))
else:
sessions_and_meta.append((True, session))
# open a second session with the node on the old version
if self.CL:
session = self.patient_exclusive_cql_connection(node2, protocol_version=self.protocol_version, consistency_level=self.CL, **kwargs)
else:
session = self.patient_exclusive_cql_connection(node2, protocol_version=self.protocol_version, **kwargs)
session.set_keyspace('ks')
if return_nodes:
sessions_and_meta.append((False, session, node2))
else:
sessions_and_meta.append((False, session))
# Let the nodes settle briefly before yielding connections in turn (on the upgraded and non-upgraded alike)
# CASSANDRA-11396 was the impetus for this change, wherein some apparent perf noise was preventing
# CL.ALL from being reached. The newly upgraded node needs to settle because it has just barely started, and each
# non-upgraded node needs a chance to settle as well, because the entire cluster (or isolated nodes) may have been doing resource intensive activities
# immediately before.
for s in sessions_and_meta:
> time.sleep(5)
E Failed: Timeout >900.0s
upgrade_tests/upgrade_base.py:208: Failed | 906.343 |
test_whole_map_conditional | Success | | 70.222 |
test_row_existence | Success | | 161.346 |
test_cas_and_ttl | Success | | 65.951 |
test_delete_row | Success | | 137.703 |
test_intersection_logic_returns_empty_result | Success | | 85.528 |
test_null_support | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:835: test not applicable to env. | 0.000 |
test_collection_flush | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3351: test not applicable to env. | 0.000 |
test_counters | Success | | 53.829 |
test_NPE_during_select_with_token | Success | | 53.612 |
test_materialized_view_simple | Success | | 55.363 |
test_float_with_exponent | Success | | 56.576 |
test_negative_timestamp | Success | | 56.862 |
test_returned_null | Success | | 56.045 |
test_static_with_limit | Success | | 58.964 |
test_npe_composite_table_slice | Success | | 54.821 |
test_in_order_by_without_selecting | Success | | 56.558 |
test_list | Success | | 57.581 |
test_nan_infinity | Success | | 57.823 |
test_batch | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:979: test not applicable to env. | 0.000 |
test_internal_application_error_on_select | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3480: test not applicable to env. | 0.000 |
test_undefined_page_size_default | Success | | 71.102 |
test_with_order_by | Success | | 64.328 |
test_paging_across_multi_wide_rows | Success | | 79.623 |
test_data_change_impacting_earlier_page | Success | | 65.584 |
test_multiple_partition_deletions | Success | | 66.348 |
test_single_row_deletions | Success | | 69.328 |
test_sstableloader_compression_none_to_deflate | Skipped | 5.0 > 3.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0 > 3.99 | 0.355 |
test_sstableloader_compression_deflate_to_none | Skipped | 5.0 > 4.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0 > 4.99 | 0.592 |
test_dense_supercolumn_with_renames | Skipped | 5.0 > 3.99
/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 3.99 | 0.341 |
test_rolling_upgrade | Success | | 420.573 |