Unit Test Results.

Designed for use with JUnit and Ant.

Class dtest-upgrade-novnode_jdk11_python3.8_cythonno_x86_64_4_64

NameTestsErrorsFailuresSkippedTime(s)Time StampHost
8_cythonno_x86_64_4_644102152759.5752024-07-19T19:00:51.0291122b0b932c5145

Tests

NameStatusTypeTime(s)
test_upgrade_legacy_tableSkipped5.0.1 > 3.X

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.X
0.905
test_mapSkippedtest not applicable to env.

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

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3501: test not applicable to env.
0.000
test_in_clause_wide_rowsSuccess75.073
test_conversion_functionsSuccess66.435
test_select_set_key_multi_rowSkippedawaiting CASSANDRA-7396

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5347: awaiting CASSANDRA-7396
0.001
test_multiorderingSuccess78.894
test_whole_set_conditionalSuccess77.498
test_composite_row_keyFailureTypeError: '<' not supported between instances of 'str' and 'int'

self = <abc.TestCQLNodes3RF3_Upgrade_current_5_0_x_To_indev_5_0_x object at 0x7f595ce466a0>

def test_composite_row_key(self):
cursor = self.prepare()

cursor.execute("""
CREATE TABLE test (
k1 int,
k2 int,
c int,
v int,
PRIMARY KEY ((k1, k2), c)
)
""")

for is_upgraded, cursor in self.do_upgrade(cursor):
logger.debug("Querying {} node".format("upgraded" if is_upgraded else "old"))
cursor.execute("TRUNCATE test")

req = "INSERT INTO test (k1, k2, c, v) VALUES ({}, {}, {}, {})"
for i in range(0, 4):
cursor.execute(req.format(0, i, i, i))

assert_all(cursor, "SELECT * FROM test", [[0, 2, 2, 2], [0, 3, 3, 3], [0, 0, 0, 0], [0, 1, 1, 1]])

assert_all(cursor, "SELECT * FROM test WHERE k1 = 0 and k2 IN (1, 3)", [[0, 1, 1, 1], [0, 3, 3, 3]])

assert_invalid(cursor, "SELECT * FROM test WHERE k2 = 3")

> if self.get_node_version(is_upgraded) < '2.2':

upgrade_tests/cql_tests.py:1496:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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
76.849
test_more_user_typesSuccess73.748
test_order_by_with_inSuccess295.144
test_empty_blobSuccess67.824
test_tracing_prevents_startup_after_upgradingSuccess77.121
test_truncate_clean_cacheSkippedhttps://issues.apache.org/jira/browse/CASSANDRA-14961

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:2379: https://issues.apache.org/jira/browse/CASSANDRA-14961
0.000
test_cas_and_list_indexSuccess167.613
test_only_pkSkippedtest not applicable to env.

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

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3785: test not applicable to env.
0.000
test_deletionSuccess60.508
test_non_eq_conditional_updateSuccess57.443
test_noncomposite_static_cfSuccess61.842
test_multi_inSuccess61.185
test_key_index_with_reverse_clusteringSuccess61.981
test_composite_index_with_pkFailureTypeError: '<' not supported between instances of 'str' and 'int'

self = <abc.TestCQLNodes2RF1_Upgrade_current_5_0_x_To_indev_5_0_x object at 0x7f595cb28df0>

@pytest.mark.no_vnodes
def test_composite_index_with_pk(self):

cursor = self.prepare(ordered=True)
cursor.execute("""
CREATE TABLE blogs (
blog_id int,
time1 int,
time2 int,
author text,
content text,
PRIMARY KEY (blog_id, time1, time2)
)
""")

cursor.execute("CREATE INDEX ON blogs(author)")

for is_upgraded, cursor in self.do_upgrade(cursor):
logger.debug("Querying {} node".format("upgraded" if is_upgraded else "old"))
cursor.execute("TRUNCATE blogs")

req = "INSERT INTO blogs (blog_id, time1, time2, author, content) VALUES (%d, %d, %d, '%s', '%s')"
cursor.execute(req % (1, 0, 0, 'foo', 'bar1'))
cursor.execute(req % (1, 0, 1, 'foo', 'bar2'))
cursor.execute(req % (2, 1, 0, 'foo', 'baz'))
cursor.execute(req % (3, 0, 1, 'gux', 'qux'))

query = "SELECT blog_id, content FROM blogs WHERE author='foo'"
assert_all(cursor, query, [[1, 'bar1'], [1, 'bar2'], [2, 'baz']])

query = "SELECT blog_id, content FROM blogs WHERE time1 > 0 AND author='foo' ALLOW FILTERING"
assert_one(cursor, query, [2, 'baz'])

query = "SELECT blog_id, content FROM blogs WHERE time1 = 1 AND author='foo' ALLOW FILTERING"
assert_one(cursor, query, [2, 'baz'])

query = "SELECT blog_id, content FROM blogs WHERE time1 = 1 AND time2 = 0 AND author='foo' ALLOW FILTERING"
assert_one(cursor, query, [2, 'baz'])

query = "SELECT content FROM blogs WHERE time1 = 1 AND time2 = 1 AND author='foo' ALLOW FILTERING"
assert_none(cursor, query)

query = "SELECT content FROM blogs WHERE time1 = 1 AND time2 > 0 AND author='foo' ALLOW FILTERING"
assert_none(cursor, query)

assert_invalid(cursor, "SELECT content FROM blogs WHERE time2 >= 0 AND author='foo'")

# as discussed in CASSANDRA-8148, some queries that should have required ALLOW FILTERING
# in 2.0 have been fixed for 2.2
> if self.get_node_version(is_upgraded) < '2.2':

upgrade_tests/cql_tests.py:1818:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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
55.500
test_static_columns_with_2iSuccess57.393
test_timestamp_and_ttlSuccess61.230
test_nonpure_function_collectionSuccess58.689
test_limit_rangesSuccess64.661
test_timeuuidSuccess70.700
test_SIM_assertion_errorSuccess64.893
test_remove_range_sliceSkippedtest not applicable to env.

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

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:4217: test not applicable to env.
0.000
test_with_less_results_than_page_sizeSuccess64.868
test_with_order_by_reversedSuccess54.851
test_paging_using_secondary_indexes_with_static_colsSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/paging_test.py:876: test not applicable to env.
0.000
test_data_change_impacting_later_pageSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/paging_test.py:959: test not applicable to env.
0.000
test_multiple_cell_deletionsSuccess68.047
test_schema_agreementSkipped5.0 > 3.0.99

/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 3.0.99
0.367
test_sstableloader_with_mvSkipped5.0.1 > 3.99

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.99
0.354
test_keys_index_3_0_createdSkipped5.0.1 > 4.99

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4.99
0.350
test_parallel_upgradeSuccess775.723
test_udtfix_in_sstableSkippedtest not applicable to env.

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