Name | Status | Type | Time(s) |
test_upgrade_to_30 | Skipped | 5.0.1 > 3.0.X
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.0.X | 0.908 |
test_set | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1297: 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_exclusive_slice | Success | | 57.495 |
test_ticket_5230 | Success | | 55.702 |
test_select_map_key_multi_row | Skipped | awaiting CASSANDRA-7396
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5318: awaiting CASSANDRA-7396 | 0.001 |
test_boolean | Success | | 59.084 |
test_expanded_list_item_conditional | Success | | 62.752 |
test_range_query | Success | | 60.731 |
test_user_types | Success | | 60.834 |
test_order_by_validation | Success | | 139.300 |
test_NPE_during_select_with_token | Success | | 56.421 |
test_secondary_index_query | Skipped | https://issues.apache.org/jira/browse/CASSANDRA-14961
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5427: https://issues.apache.org/jira/browse/CASSANDRA-14961 | 0.000 |
test_composite_index_collections | Success | | 122.268 |
test_expanded_map_item_conditional | Success | | 65.626 |
test_row_existence | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1629: test not applicable to env. | 0.001 |
test_collection_indexing | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3733: test not applicable to env. | 0.000 |
test_nameless_index | Success | | 51.117 |
test_conditional_update | Success | | 50.439 |
test_large_collection_errors | Skipped | 5.0 > 2.99
/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 2.99 | 0.602 |
test_composite_partition_key_validation | Success | | 51.807 |
test_limit_compact_table | Success | | 52.668 |
test_range_slice | Success | | 52.340 |
test_static_columns_cas | Failure | TypeError: '<' not supported between instances of 'str' and 'int'
self = <abc.TestCQLNodes2RF1_Upgrade_current_5_0_x_To_indev_5_0_x object at 0x7f88060fc8e0>
@since('2.1')
def test_static_columns_cas(self):
""""
@jira_ticket CASSANDRA-6839
@jira_ticket CASSANDRA-6561
"""
cursor = self.prepare()
cursor.execute("""
CREATE TABLE test (
id int,
k text,
version int static,
v text,
PRIMARY KEY (id, k)
)
""")
for is_upgraded, cursor in self.do_upgrade(cursor):
logger.debug("Querying {} node".format("upgraded" if is_upgraded else "old"))
cursor.execute("TRUNCATE test")
# Test that INSERT IF NOT EXISTS concerns only the static column if no clustering nor regular columns
# is provided, but concerns the CQL3 row targetted by the clustering columns otherwise
assert_one(cursor, "INSERT INTO test(id, k, v) VALUES (1, 'foo', 'foo') IF NOT EXISTS", [True])
assert_one(cursor, "INSERT INTO test(id, k, version) VALUES (1, 'foo', 1) IF NOT EXISTS", [False, 1, 'foo', None, 'foo'])
assert_one(cursor, "INSERT INTO test(id, version) VALUES (1, 1) IF NOT EXISTS", [True])
assert_one(cursor, "SELECT * FROM test", [1, 'foo', 1, 'foo'], ConsistencyLevel.SERIAL)
# Dodgy as its not conditional, but this is not allowed with a condition and that's probably fine in practice so go with it
cursor.execute("DELETE FROM test WHERE id = 1")
assert_one(cursor, "INSERT INTO test(id, version) VALUES (0, 0) IF NOT EXISTS", [True])
assert_one(cursor, "UPDATE test SET v='foo', version=1 WHERE id=0 AND k='k1' IF version = 0", [True])
assert_all(cursor, "SELECT * FROM test", [[0, 'k1', 1, 'foo']], ConsistencyLevel.SERIAL)
assert_one(cursor, "UPDATE test SET v='bar', version=1 WHERE id=0 AND k='k2' IF version = 0", [False, 1])
assert_all(cursor, "SELECT * FROM test", [[0, 'k1', 1, 'foo']], ConsistencyLevel.SERIAL)
assert_one(cursor, "UPDATE test SET v='bar', version=2 WHERE id=0 AND k='k2' IF version = 1", [True])
assert_all(cursor, "SELECT * FROM test", [[0, 'k1', 2, 'foo'], [0, 'k2', 2, 'bar']], ConsistencyLevel.SERIAL)
# CASSANDRA-12694 (committed in 3.0.11 and 3.10) changes the behavior below slightly.
> version = self.get_node_version(is_upgraded)
upgrade_tests/cql_tests.py:3954:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
upgrade_tests/upgrade_base.py:227: in get_node_version
return max(node_versions) if is_upgraded else min(node_versions)
/usr/lib/python3.8/distutils/version.py:64: in __gt__
c = self._cmp(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = LooseVersion ('5.0-rc1'), other = LooseVersion ('5.0.1')
def _cmp (self, other):
if isinstance(other, str):
other = LooseVersion(other)
if self.version == other.version:
return 0
> if self.version < other.version:
E TypeError: '<' not supported between instances of 'str' and 'int'
/usr/lib/python3.8/distutils/version.py:337: TypeError | 47.104 |
test_token_range | Success | | 52.280 |
test_select_with_alias | Success | | 51.449 |
test_sparse_cf | Success | | 53.007 |
test_large_clustering_in | Success | | 55.172 |
test_end_of_component_uses_oecBound | Success | | 53.432 |
test_order_by_multikey | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1922: test not applicable to env. | 0.000 |
test_cas_and_ttl | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:4204: test not applicable to env. | 0.000 |
test_with_no_results | Success | | 60.044 |
test_with_order_by | Success | | 51.189 |
test_static_columns_paging | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/paging_test.py:650: test not applicable to env. | 0.001 |
test_data_change_impacting_earlier_page | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/paging_test.py:923: test not applicable to env. | 0.000 |
test_single_cell_deletions | Success | | 65.459 |
test13294 | Success | | 87.276 |
test_sstableloader_compression_deflate_to_deflate | Skipped | 5.0.1 > 3.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.99 | 0.577 |
test_sparse_supercolumn | Skipped | 5.0.1 > 4.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4.99 | 0.361 |
test_rolling_upgrade_with_internode_ssl | Success | | 1177.783 |
test_udtfix_in_messaging | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/upgrade_udtfix_test.py:61: test not applicable to env. | 0.004 |