Name | Status | Type | Time(s) |
test_reversed_comparator | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:784: test not applicable to env. | 0.001 |
test_rename | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3006: test not applicable to env. | 0.000 |
test_materialized_view_simple | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5506: test not applicable to env. | 0.000 |
test_range_with_deletes | Success | | 59.718 |
test_static_with_limit | Success | | 57.006 |
test_no_clustering | Success | | 59.040 |
test_nan_infinity | Success | | 58.801 |
test_count | Success | | 61.635 |
test_conditional_delete | Failure | TypeError: '<' not supported between instances of 'str' and 'int'
self = <abc.TestCQLNodes3RF3_Upgrade_current_5_0_x_To_indev_5_0_x object at 0x7fd5f3730e50>
def test_conditional_delete(self):
cursor = self.prepare()
cursor.execute("""
CREATE TABLE test (
k int PRIMARY KEY,
v1 int,
)
""")
# static columns
cursor.execute("""
CREATE TABLE test2 (
k text,
s text static,
i int,
v text,
PRIMARY KEY (k, i)
)""")
for is_upgraded, cursor in self.do_upgrade(cursor):
logger.debug("Querying {} node".format("upgraded" if is_upgraded else "old"))
cursor.execute("TRUNCATE test")
cursor.execute("TRUNCATE test2")
assert_one(cursor, "DELETE FROM test WHERE k=1 IF EXISTS", [False])
assert_one(cursor, "INSERT INTO test (k, v1) VALUES (1, 2) IF NOT EXISTS", [True])
assert_one(cursor, "DELETE FROM test WHERE k=1 IF EXISTS", [True])
assert_none(cursor, "SELECT * FROM test WHERE k=1", cl=ConsistencyLevel.SERIAL)
assert_one(cursor, "DELETE FROM test WHERE k=1 IF EXISTS", [False])
assert_one(cursor, "INSERT INTO test (k, v1) VALUES (2, 2) IF NOT EXISTS USING TTL 1", [True])
time.sleep(1.5)
assert_one(cursor, "DELETE FROM test WHERE k=2 IF EXISTS", [False])
assert_none(cursor, "SELECT * FROM test WHERE k=2", cl=ConsistencyLevel.SERIAL)
assert_one(cursor, "INSERT INTO test (k, v1) VALUES (3, 2) IF NOT EXISTS", [True])
assert_one(cursor, "DELETE v1 FROM test WHERE k=3 IF EXISTS", [True])
assert_one(cursor, "SELECT * FROM test WHERE k=3", [3, None], cl=ConsistencyLevel.SERIAL)
assert_one(cursor, "DELETE v1 FROM test WHERE k=3 IF EXISTS", [True])
assert_one(cursor, "DELETE FROM test WHERE k=3 IF EXISTS", [True])
cursor.execute("INSERT INTO test2 (k, s, i, v) VALUES ('k', 's', 0, 'v') IF NOT EXISTS")
assert_one(cursor, "DELETE v FROM test2 WHERE k='k' AND i=0 IF EXISTS", [True])
assert_one(cursor, "DELETE FROM test2 WHERE k='k' AND i=0 IF EXISTS", [True])
assert_one(cursor, "DELETE v FROM test2 WHERE k='k' AND i=0 IF EXISTS", [False])
assert_one(cursor, "DELETE FROM test2 WHERE k='k' AND i=0 IF EXISTS", [False])
# CASSANDRA-6430
> v = self.get_node_version(is_upgraded)
upgrade_tests/cql_tests.py:3215:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 | 57.552 |
test_dynamic_cf | Success | | 143.616 |
test_multi_in_compact | Success | | 59.327 |
test_invalid_custom_timestamp | Success | | 59.031 |
test_limit_bugs | Success | | 122.038 |
test_static_columns_with_distinct | Success | | 67.775 |
test_no_range_ghost | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1093: test not applicable to env. | 0.000 |
test_empty_in | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3304: test not applicable to env. | 0.000 |
test_limit_multiget | Success | | 51.987 |
test_float_with_exponent | Success | | 51.668 |
test_blobAs_functions | Success | | 52.923 |
test_indexes_composite | Success | | 54.511 |
test_v2_protocol_IN_with_tuples | Skipped | 5.0 > 2.99
/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 2.99 | 0.621 |
test_delete_row | Success | | 53.929 |
test_function_with_null | 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 0x7fd5f348dd60>
def test_function_with_null(self):
cursor = self.prepare()
cursor.execute("""
CREATE TABLE test (
k int PRIMARY KEY,
t timeuuid
)
""")
for is_upgraded, cursor in self.do_upgrade(cursor):
logger.debug("Querying {} node".format("upgraded" if is_upgraded else "old"))
cursor.execute("TRUNCATE test")
cursor.execute("INSERT INTO test(k) VALUES (0)")
> if self.get_node_version(is_upgraded) >= LooseVersion('2.2'):
upgrade_tests/cql_tests.py:3458:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 | 48.683 |
test_indexed_with_eq | Success | | 55.445 |
test_edge_2i_on_complex_pk | Success | | 56.896 |
test_select_set_key_single_row | Skipped | awaiting CASSANDRA-7396
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5259: awaiting CASSANDRA-7396 | 0.001 |
test_collection_and_regular | Success | | 54.160 |
test_whole_list_conditional | Success | | 58.678 |
test_list | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1379: test not applicable to env. | 0.000 |
test_add_deletion_info_in_unsorted_column | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3522: test not applicable to env. | 0.000 |
test_with_less_results_than_page_size | Success | | 58.187 |
test_with_limit | Success | | 66.496 |
test_static_columns_paging | Success | | 70.315 |
test_row_TTL_expiry_during_paging | Success | | 90.849 |
test_single_cell_deletions | Success | | 67.359 |
test_multiple_cell_deletions | Success | | 61.608 |
test_sstableloader_compression_snappy_to_snappy | Skipped | 5.0.1 > 3.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.99 | 0.336 |
test_sstableloader_compression_deflate_to_deflate | Skipped | 5.0.1 > 4.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4.99 | 0.617 |
test_sparse_supercolumn | Skipped | 5.0 > 3.99
/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 3.99 | 0.630 |
test_rolling_upgrade_with_internode_ssl | Success | | 415.691 |