Unit Test Results.

Designed for use with JUnit and Ant.

Class dtest-upgrade-novnode_jdk11_python3.8_cythonno_x86_64_3_64

NameTestsErrorsFailuresSkippedTime(s)Time StampHost
8_cythonno_x86_64_3_644101152756.5772024-07-19T18:41:24.07783306164d6ac3b3

Tests

NameStatusTypeTime(s)
test_upgrade_to_30Skipped5.0.1 > 3.0.X

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.0.X
0.908
test_setSkippedtest 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_selectSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3480: test not applicable to env.
0.000
test_exclusive_sliceSuccess57.495
test_ticket_5230Success55.702
test_select_map_key_multi_rowSkippedawaiting CASSANDRA-7396

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5318: awaiting CASSANDRA-7396
0.001
test_booleanSuccess59.084
test_expanded_list_item_conditionalSuccess62.752
test_range_querySuccess60.731
test_user_typesSuccess60.834
test_order_by_validationSuccess139.300
test_NPE_during_select_with_tokenSuccess56.421
test_secondary_index_querySkippedhttps://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_collectionsSuccess122.268
test_expanded_map_item_conditionalSuccess65.626
test_row_existenceSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1629: test not applicable to env.
0.001
test_collection_indexingSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3733: test not applicable to env.
0.000
test_nameless_indexSuccess51.117
test_conditional_updateSuccess50.439
test_large_collection_errorsSkipped5.0 > 2.99

/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 2.99
0.602
test_composite_partition_key_validationSuccess51.807
test_limit_compact_tableSuccess52.668
test_range_sliceSuccess52.340
test_static_columns_casFailureTypeError: '<' 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_rangeSuccess52.280
test_select_with_aliasSuccess51.449
test_sparse_cfSuccess53.007
test_large_clustering_inSuccess55.172
test_end_of_component_uses_oecBoundSuccess53.432
test_order_by_multikeySkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1922: test not applicable to env.
0.000
test_cas_and_ttlSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:4204: test not applicable to env.
0.000
test_with_no_resultsSuccess60.044
test_with_order_bySuccess51.189
test_static_columns_pagingSkippedtest 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_pageSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/paging_test.py:923: test not applicable to env.
0.000
test_single_cell_deletionsSuccess65.459
test13294Success87.276
test_sstableloader_compression_deflate_to_deflateSkipped5.0.1 > 3.99

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.99
0.577
test_sparse_supercolumnSkipped5.0.1 > 4.99

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4.99
0.361
test_rolling_upgrade_with_internode_sslSuccess1177.783
test_udtfix_in_messagingSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/upgrade_udtfix_test.py:61: test not applicable to env.
0.004
Properties »