Unit Test Results.

Designed for use with JUnit and Ant.

Class dtest-upgrade-novnode_jdk11_python3.8_cythonno_x86_64_16_64

NameTestsErrorsFailuresSkippedTime(s)Time StampHost
8_cythonno_x86_64_16_644001122920.0272024-07-19T23:22:38.9300132001c95c5a3c

Tests

NameStatusTypeTime(s)
test_consistent_range_movement_false_with_rf1_should_succeedSuccess118.841
test_composite_index_with_pkSkippedtest not applicable to env.

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

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:4046: test not applicable to env.
0.000
test_timestamp_and_ttlSuccess67.336
test_nonpure_function_collectionSuccess59.440
test_limit_rangesSuccess72.156
test_timeuuidSuccess68.873
test_SIM_assertion_errorSuccess65.142
test_remove_range_sliceSuccess73.402
test_tuple_notationSuccess63.161
test_range_tombstones_compactionSuccess191.958
test_select_distinct_with_deletionsSuccess61.669
test_countersSuccess138.084
test_clustering_indexingSuccess66.007
test_select_map_key_single_rowSkippedawaiting CASSANDRA-7396

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5231: awaiting CASSANDRA-7396
0.000
test_reversed_compact_multikeySkippedtest not applicable to env.

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

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:4336: test not applicable to env.
0.000
test_mapSuccess53.334
test_store_sets_with_if_not_existsSuccess53.530
test_in_clause_wide_rowsSuccess57.084
test_conversion_functionsSuccess55.292
test_select_set_key_multi_rowSkippedawaiting CASSANDRA-7396

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5347: awaiting CASSANDRA-7396
0.000
test_multiorderingSuccess56.518
test_whole_set_conditionalFailureTypeError: '<' not supported between instances of 'str' and 'int'

self = <abc.TestCQLNodes2RF1_Upgrade_current_5_0_x_To_indev_5_0_x object at 0x7fab17093b80>

@since('2.1.1')
def test_whole_set_conditional(self):
cursor = self.prepare()

cursor.execute("""
CREATE TABLE tset (
k int PRIMARY KEY,
s set<text>
)""")

cursor.execute("""
CREATE TABLE frozentset (
k int PRIMARY KEY,
s frozen<set<text>>
)""")

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

for frozen in (False, True):

table = "frozentset" if frozen else "tset"
assert_one(cursor, "INSERT INTO {}(k, s) VALUES (0, {{'bar', 'foo'}}) IF NOT EXISTS".format(table), [True])

def check_applies(condition):
# UPDATE statement
assert_one(cursor, "UPDATE {} SET s = {{'bar', 'foo'}} WHERE k=0 IF {}".format(table, condition), [True])
assert_one(cursor, "SELECT * FROM {}".format(table), [0, {'bar', 'foo'}], cl=ConsistencyLevel.SERIAL)
# DELETE statement
assert_one(cursor, "DELETE FROM {} WHERE k=0 IF {}".format(table, condition), [True])
assert_none(cursor, "SELECT * FROM {}".format(table), cl=ConsistencyLevel.SERIAL)
assert_one(cursor, "INSERT INTO {}(k, s) VALUES (0, {{'bar', 'foo'}}) IF NOT EXISTS".format(table), [True])

check_applies("s = {'bar', 'foo'}")
check_applies("s = {'foo', 'bar'}")
check_applies("s != {'baz'}")
check_applies("s > {'a'}")
check_applies("s >= {'a'}")
check_applies("s < {'z'}")
check_applies("s <= {'z'}")
check_applies("s IN (null, {'bar', 'foo'}, {'a'})")

# multiple conditions
check_applies("s > {'a'} AND s < {'z'}")
check_applies("s IN (null, {'bar', 'foo'}, {'a'}) AND s IN ({'a'}, {'bar', 'foo'}, null)")

def check_does_not_apply(condition):
# UPDATE statement
assert_one(cursor, "UPDATE {} SET s = {{'bar', 'foo'}} WHERE k=0 IF {}".format(table, condition),
[False, {'bar', 'foo'}])
assert_one(cursor, "SELECT * FROM {}".format(table), [0, {'bar', 'foo'}], cl=ConsistencyLevel.SERIAL)
# DELETE statement
assert_one(cursor, "DELETE FROM {} WHERE k=0 IF {}".format(table, condition),
[False, {'bar', 'foo'}])
assert_one(cursor, "SELECT * FROM {}".format(table), [0, {'bar', 'foo'}], cl=ConsistencyLevel.SERIAL)

# should not apply
check_does_not_apply("s = {'baz'}")
check_does_not_apply("s != {'bar', 'foo'}")
check_does_not_apply("s > {'z'}")
check_does_not_apply("s >= {'z'}")
check_does_not_apply("s < {'a'}")
check_does_not_apply("s <= {'a'}")
check_does_not_apply("s IN ({'a'}, null)")
check_does_not_apply("s IN ()")
check_does_not_apply("s != null AND s IN ()")

def check_invalid(condition, expected=InvalidRequest):
# UPDATE statement
assert_invalid(cursor, "UPDATE {} SET s = {{'bar', 'foo'}} WHERE k=0 IF {}".format(table, condition), expected=expected)
assert_one(cursor, "SELECT * FROM {}".format(table), [0, {'bar', 'foo'}], cl=ConsistencyLevel.SERIAL)
# DELETE statement
assert_invalid(cursor, "DELETE FROM {} WHERE k=0 IF {}".format(table, condition), expected=expected)
assert_one(cursor, "SELECT * FROM {}".format(table), [0, {'bar', 'foo'}], cl=ConsistencyLevel.SERIAL)

check_invalid("s = {null}")
check_invalid("s < null")
check_invalid("s <= null")
check_invalid("s > null")
check_invalid("s >= null")
check_invalid("s IN null", expected=SyntaxException)
check_invalid("s IN 367", expected=SyntaxException)

# element access is not allow for sets
check_invalid("s['foo'] = 'foobar'")

# @jira_ticket CASSANDRA-10537
> if self.get_node_version(is_upgraded) >= LooseVersion(CASSANDRA_4_1):

upgrade_tests/cql_tests.py:4683:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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
51.562
test_composite_row_keySuccess56.304
test_more_user_typesSuccess57.059
test_order_by_with_inSuccess56.564
test_empty_blobSuccess57.560
test_tracing_prevents_startup_after_upgradingSuccess65.124
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_indexSkippedtest not applicable to env.

/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:4919: test not applicable to env.
0.000
test_with_equal_results_to_page_sizeSuccess53.851
test_with_order_by_reversedSuccess56.622
test_paging_using_secondary_indexesSuccess57.684
test_data_change_impacting_later_pageSuccess58.701
test_single_row_deletionsSkippedtest not applicable to env.

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

/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 3.0.99
0.364
test_sstableloader_compression_none_to_snappySkipped5.0.1 > 3.99

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.99
0.353
test_sparse_supercolumn_with_renamesSkipped5.0 > 3.99

/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 3.99
0.601
test_parallel_upgradeSuccess2.778
test_parallel_upgradeSuccess514.855
Properties »