Unit Test Results.

Designed for use with JUnit and Ant.

Class dtest_jdk17_python3.8_cythonno_x86_64_13_64

NameTestsErrorsFailuresSkippedTime(s)Time StampHost
8_cythonno_x86_64_13_6417054919.6862024-10-01T23:51:31.8504458ee447720836

Tests

NameStatusTypeTime(s)
test_password_authenticator_create_user_requires_passwordSkipped5.0.1 > 2.1.x

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 2.1.x
0.646
test_drop_keyspace_cleans_up_function_level_permissionsSuccess22.639
test_shutdown_wiped_node_cannot_joinSuccess183.646
test_disable_compression_cqlSuccess14.108
test_invalid_string_literalsSuccess12.608
test_complex_data_typesSuccess21.879
test_mutations_dontblockSuccess19.033
test_paging_on_compact_table_with_tombstone_on_first_columnSkipped5.0.1 > 3.X

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.X
0.461
test_insert_data_during_replace_different_addressSuccess211.349
test_rf_expand_property_file_snitchSuccess4.460
test_rf_expand_property_file_snitchFailureccmlib.common.UnavailableSocketError: Inet address 127.0.0.3:7000 is not available: [Errno 98] Address already in use; a cluster may already be running or you may need to add the loopback alias

itf = ('127.0.0.3', 7000)

def assert_socket_available(itf):
info = socket.getaddrinfo(itf[0], itf[1], socket.AF_UNSPEC, socket.SOCK_STREAM)
if not info:
raise UnavailableSocketError("Failed to get address info for [%s]:%s" % itf)

(family, socktype, proto, canonname, sockaddr) = info[0]
s = socket.socket(family, socktype)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

try:
> s.bind(sockaddr)
E OSError: [Errno 98] Address already in use

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/common.py:631: OSError

During handling of the above exception, another exception occurred:

self = <replication_test.TestSnitchConfigurationUpdate object at 0x7f4bd9d028e0>

@since('2.1', max_version='5.0.x')
def test_rf_expand_property_file_snitch(self):
"""
@jira_ticket CASSANDRA-10238
@jira_ticket CASSANDRA-10242
@jira_ticket CASSANDRA-10243

Confirm that when racks are expanded using a property file snitch the RF is not impacted.
"""
> self._test_rf_on_snitch_update(nodes=[3], rf={'class': '\'NetworkTopologyStrategy\'', 'dc1': 3},
snitch_class_name='PropertyFileSnitch',
snitch_config_file='cassandra-topology.properties',
snitch_lines_before=lambda i, node: ["default=dc1:rack0"],
snitch_lines_after=lambda i, node: ["127.0.0.1=dc1:rack0", "127.0.0.2=dc1:rack1", "127.0.0.3=dc1:rack2"],
final_racks=["rack0", "rack1", "rack2"],
nodes_to_shutdown=[1, 2])

replication_test.py:460:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
replication_test.py:552: in _test_rf_on_snitch_update
cluster.start()
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:515: in start
common.assert_socket_available(itf)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

itf = ('127.0.0.3', 7000)

def assert_socket_available(itf):
info = socket.getaddrinfo(itf[0], itf[1], socket.AF_UNSPEC, socket.SOCK_STREAM)
if not info:
raise UnavailableSocketError("Failed to get address info for [%s]:%s" % itf)

(family, socktype, proto, canonname, sockaddr) = info[0]
s = socket.socket(family, socktype)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

try:
s.bind(sockaddr)
s.close()
return True
except socket.error as msg:
s.close()
addr, port = itf
> raise UnavailableSocketError(
"Inet address %s:%s is not available: %s; a cluster may already be running or you may need to add the loopback alias" % (
addr, port, msg))
E ccmlib.common.UnavailableSocketError: Inet address 127.0.0.3:7000 is not available: [Errno 98] Address already in use; a cluster may already be running or you may need to add the loopback alias

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/common.py:637: UnavailableSocketError
4.243
test_startup_after_ring_delaySuccess38.810
test_missing_superSkipped5.0.1 > 4

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4
0.227
test_create_then_drop_ksSkipped5.0.1 > 4

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4
0.456
test_collection_list_ttlFailurecassandra.Unavailable: Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level ONE" info={'consistency': 'ONE', 'required_replicas': 1, 'alive_replicas': 0}

self = <ttl_test.TestTTL object at 0x7f4bd9c8b730>

def test_collection_list_ttl(self):
"""
Test that ttl has a granularity of elements using a list collection.
"""
self.prepare(default_time_to_live=10)

self.session1.execute("ALTER TABLE ttl_table ADD mylist list<int>;""")
start = time.time()
self.session1.execute("""
INSERT INTO ttl_table (key, col1, mylist) VALUES (%d, %d, %s);
""" % (1, 1, [1, 2, 3, 4, 5]))
self.session1.execute("""
UPDATE ttl_table USING TTL 5 SET mylist[0] = 42, mylist[4] = 42 WHERE key=1;
""")
> assert_all(self.session1, "SELECT * FROM ttl_table;", [[1, 1, None, None, [42, 2, 3, 4, 42]]])

ttl_test.py:267:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tools/assertions.py:182: in assert_all
res = session.execute(simple_query) if timeout is None else session.execute(simple_query, timeout=timeout)
../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:2618: in execute
return self.execute_async(query, parameters, trace, custom_payload, timeout, execution_profile, paging_state, host, execute_as).result()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ResponseFuture: query='<SimpleStatement query="SELECT * FROM ttl_table;", consistency=Not Set>' request_id=21 result=...cy level ONE" info={'consistency': 'ONE', 'required_replicas': 1, 'alive_replicas': 0} coordinator_host=127.0.0.3:9042>

def result(self):
"""
Return the final result or raise an Exception if errors were
encountered. If the final result or error has not been set
yet, this method will block until it is set, or the timeout
set for the request expires.

Timeout is specified in the Session request execution functions.
If the timeout is exceeded, an :exc:`cassandra.OperationTimedOut` will be raised.
This is a client-side timeout. For more information
about server-side coordinator timeouts, see :class:`.policies.RetryPolicy`.

Example usage::

>>> future = session.execute_async("SELECT * FROM mycf")
>>> # do other stuff...

>>> try:
... rows = future.result()
... for row in rows:
... ... # process results
... except Exception:
... log.exception("Operation failed:")

"""
self._event.wait()
if self._final_result is not _NOT_SET:
return ResultSet(self, self._final_result)
else:
> raise self._final_exception
E cassandra.Unavailable: Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level ONE" info={'consistency': 'ONE', 'required_replicas': 1, 'alive_replicas': 0}

../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:4894: Unavailable
14.968
test_describeFailureAssertionError: <stdin>:3:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042 <stdin>:3:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers. <stdin>:5:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042 <stdin>:5:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers. <stdin>:7:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042 <stdin>:7:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers. <stdin>:9:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042 <stdin>:9:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers. <stdin>:11:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042 <stdin>:11:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers. <stdin>:13:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042 <stdin>:13:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers. <stdin>:16:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042 <stdin>:16:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers. assert False

self = <cqlsh_tests.test_cqlsh.TestCqlsh object at 0x7f4bd9c64640>

def test_describe(self):
"""
@jira_ticket CASSANDRA-7814
"""
self.cluster.populate(1)
self.cluster.start()
node1, = self.cluster.nodelist()

> self.execute(
cql="""
CREATE KEYSPACE test WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor' : 1};
CREATE TABLE test.users ( userid text PRIMARY KEY, firstname text, lastname text, age int);
CREATE INDEX myindex ON test.users (age);
CREATE INDEX "QuotedNameIndex" on test.users (firstName);
CREATE TABLE test.test (id int, col int, val text, PRIMARY KEY(id, col));
CREATE INDEX ON test.test (col);
CREATE INDEX ON test.test (val)
""")

cqlsh_tests/test_cqlsh.py:866:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cqlsh_tests.test_cqlsh.TestCqlsh object at 0x7f4bd9c64640>
cql = "\n CREATE KEYSPACE test WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor' : 1};\n ...;\n CREATE INDEX ON test.test (col);\n CREATE INDEX ON test.test (val)\n "
expected_output = None, expected_err = None, env_vars = None
output_is_ordered = True, err_is_ordered = True

def execute(self, cql, expected_output=None, expected_err=None, env_vars=None, output_is_ordered=True, err_is_ordered=True):
logger.debug(cql)

node1, = self.cluster.nodelist()
output, err = self.run_cqlsh(node1, cql, env_vars=env_vars)

if err:
if expected_err:
err = err[10:] # strip <stdin>:2:
if err_is_ordered:
self.check_response(err, expected_err)
else:
self.check_response_unordered(err, expected_err)
return
else:
> assert False, err
E AssertionError: <stdin>:3:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
E <stdin>:3:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers.
E <stdin>:5:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
E <stdin>:5:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers.
E <stdin>:7:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
E <stdin>:7:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers.
E <stdin>:9:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
E <stdin>:9:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers.
E <stdin>:11:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
E <stdin>:11:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers.
E <stdin>:13:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
E <stdin>:13:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers.
E <stdin>:16:OperationTimedOut: errors={'Connection defunct by heartbeat': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
E <stdin>:16:Warning: schema version mismatch detected; check the schema versions of your nodes in system.local and system.peers.
E
E assert False

cqlsh_tests/test_cqlsh.py:1613: AssertionError
190.454
test_undefined_as_null_indicator_no_prepared_statementsFailureAssertionError: assert [['1', 'eggs', '1', '1.1', '2015-01-01 00:00:00.000+0000', '[1, 2, 3]'],\n ['100', 'sausage', '100', '2.2', 'undefined', 'undefined'],\n ['2', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined'],\n ['200', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined']] == [] Left contains 4 more items, first extra item: ['1', 'eggs', '1', '1.1', '2015-01-01 00:00:00.000+0000', '[1, 2, 3]'] Full diff: [ - , + ['1', + 'eggs', + '1', + '1.1', + '2015-01-01 00:00:00.000+0000', + '[1, 2, 3]'], + ['100', + 'sausage', + '100', + '2.2', + 'undefined', + 'undefined'], + ['2', + 'undefined', + 'undefined', + 'undefined', + 'undefined', + 'undefined'], + ['200', + 'undefined', + 'undefined', + 'undefined', + 'undefined', + 'undefined'], ]

self = <cqlsh_tests.test_cqlsh_copy.TestCqlshCopy object at 0x7f4bd9bcb910>

def test_undefined_as_null_indicator_no_prepared_statements(self):
"""
Use custom_null_indicator_template to test COPY with NULL = undefined and no prepared statements.
"""
> self.custom_null_indicator_template('undefined', copy_from_options={'PREPAREDSTATEMENTS': 'False'})

cqlsh_tests/test_cqlsh_copy.py:558:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cqlsh_tests/test_cqlsh_copy.py:514: in custom_null_indicator_template
self.assertCsvResultEqual(tempfile.name, results, 'testnullindicator')
cqlsh_tests/test_cqlsh_copy.py:347: in assertCsvResultEqual
raise e
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cqlsh_tests.test_cqlsh_copy.TestCqlshCopy object at 0x7f4bd9bcb910>
csv_filename = '/home/cassandra/cassandra/build/run-python-dtest.W3Xixa/tmp75aj7xu_'
results = [], table_name = 'testnullindicator', columns = None
cql_type_names = None, sort_data = True

def assertCsvResultEqual(self, csv_filename, results, table_name=None,
columns=None, cql_type_names=None, sort_data=True):

csv_results = list(csv_rows(csv_filename))
self.maxDiff = None

if sort_data:
csv_results = sorted(csv_results)
results = sorted(results)

try:
> assert csv_results == results
E AssertionError: assert [['1', 'eggs', '1', '1.1', '2015-01-01 00:00:00.000+0000', '[1, 2, 3]'],\n ['100', 'sausage', '100', '2.2', 'undefined', 'undefined'],\n ['2', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined'],\n ['200', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined']] == []
E Left contains 4 more items, first extra item: ['1', 'eggs', '1', '1.1', '2015-01-01 00:00:00.000+0000', '[1, 2, 3]']
E Full diff:
E [
E - ,
E + ['1',
E + 'eggs',
E + '1',
E + '1.1',
E + '2015-01-01 00:00:00.000+0000',
E + '[1, 2, 3]'],
E + ['100',
E + 'sausage',
E + '100',
E + '2.2',
E + 'undefined',
E + 'undefined'],
E + ['2',
E + 'undefined',
E + 'undefined',
E + 'undefined',
E + 'undefined',
E + 'undefined'],
E + ['200',
E + 'undefined',
E + 'undefined',
E + 'undefined',
E + 'undefined',
E + 'undefined'],
E ]

cqlsh_tests/test_cqlsh_copy.py:331: AssertionError
17.484
test_reading_text_pk_no_prepared_statementsFailureAssertionError: assert [['text1',\n 'text2',\n '127.0.0.1',\n 'text3',\n 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577',\n 'SA'],\n ['text4',\n 'ヽ(´ー`)ノ',\n '127.0.0.2',\n 'text6',\n 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577',\n 'SA']] == [] Left contains 2 more items, first extra item: ['text1', 'text2', '127.0.0.1', 'text3', 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577', 'SA'] Full diff: [ - , + ['text1', + 'text2', + '127.0.0.1', + 'text3', + 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577', + 'SA'], + ['text4', + 'ヽ(´ー`)ノ', + '127.0.0.2', + 'text6', + 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577', + 'SA'], ]

self = <cqlsh_tests.test_cqlsh_copy.TestCqlshCopy object at 0x7f4bd9b81a90>

@since('2.2')
def test_reading_text_pk_no_prepared_statements(self):
"""
When using non-prepared statements we don't need to convert any value except for partition keys,
and this test ensures that we can convert text related types into a binary partition key.

@jira_ticket CASSANDRA-12909
"""
self.prepare()
self.session.execute("""
CREATE TABLE test_reading_text_pk_no_prepared_statements (
ascii_id ascii,
text_id text,
inet_id inet,
varchar_id varchar,
user_id timeuuid,
val text,
PRIMARY KEY ((ascii_id, text_id, inet_id, varchar_id, user_id))
)""")

tempfile = self.get_temp_file()
with open(tempfile.name, 'w') as f:
f.write('text1,text2,127.0.0.1,text3,f7ce3ac0-a66e-11e6-b58e-4e29450fd577,SA\n')
f.write('text4,ヽ(´ー`)ノ,127.0.0.2,text6,f7ce3ac0-a66e-11e6-b58e-4e29450fd577,SA\n')

logger.debug('Importing from csv file: {name}'.format(name=tempfile.name))
cmds = "COPY ks.test_reading_text_pk_no_prepared_statements FROM '{name}' WITH PREPAREDSTATEMENTS=FALSE"\
.format(name=tempfile.name)
self.run_cqlsh(cmds=cmds)

out, err, _ = self.run_cqlsh(cmds="SELECT * FROM ks.test_reading_text_pk_no_prepared_statements")
res = self.parse_cqlsh_query(out=out, num_cols=6, timestamps_to_be_rounded=[])

> self.assertCsvResultEqual(tempfile.name, res, 'test_reading_text_pk_no_prepared_statements')

cqlsh_tests/test_cqlsh_copy.py:3134:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cqlsh_tests/test_cqlsh_copy.py:347: in assertCsvResultEqual
raise e
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cqlsh_tests.test_cqlsh_copy.TestCqlshCopy object at 0x7f4bd9b81a90>
csv_filename = '/home/cassandra/cassandra/build/run-python-dtest.W3Xixa/tmpkm3zr79j'
results = [], table_name = 'test_reading_text_pk_no_prepared_statements'
columns = None, cql_type_names = None, sort_data = True

def assertCsvResultEqual(self, csv_filename, results, table_name=None,
columns=None, cql_type_names=None, sort_data=True):

csv_results = list(csv_rows(csv_filename))
self.maxDiff = None

if sort_data:
csv_results = sorted(csv_results)
results = sorted(results)

try:
> assert csv_results == results
E AssertionError: assert [['text1',\n 'text2',\n '127.0.0.1',\n 'text3',\n 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577',\n 'SA'],\n ['text4',\n 'ヽ(´ー`)ノ',\n '127.0.0.2',\n 'text6',\n 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577',\n 'SA']] == []
E Left contains 2 more items, first extra item: ['text1', 'text2', '127.0.0.1', 'text3', 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577', 'SA']
E Full diff:
E [
E - ,
E + ['text1',
E + 'text2',
E + '127.0.0.1',
E + 'text3',
E + 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577',
E + 'SA'],
E + ['text4',
E + 'ヽ(´ー`)ノ',
E + '127.0.0.2',
E + 'text6',
E + 'f7ce3ac0-a66e-11e6-b58e-4e29450fd577',
E + 'SA'],
E ]

cqlsh_tests/test_cqlsh_copy.py:331: AssertionError
16.370
Properties »