Unit Test Results.

Designed for use with JUnit and Ant.

All Failures

ClassNameStatusTypeTime(s)
8_cythonno_x86_64_10_64test_system_auth_ks_is_alterableFailurecassandra.DriverException: Keyspace metadata was not refreshed. See log for details.

self = <auth_test.TestAuth object at 0x7f10dc59aa90>

def test_system_auth_ks_is_alterable(self):
"""
* Launch a three node cluster
* Verify the default RF of system_auth is 1
* Increase the system_auth RF to 3
* Run repair, see 10655
* Restart the cluster
* Check that each node agrees on the system_auth RF

@jira_ticket CASSANDRA-10655
"""
self.prepare(nodes=3)
logger.debug("nodes started")

session = self.get_session(user='cassandra', password='cassandra')
auth_metadata = UpdatingKeyspaceMetadataWrapper(
cluster=session.cluster,
ks_name='system_auth',
max_schema_agreement_wait=60 # 6x the default of 10
)
assert 1 == auth_metadata.replication_strategy.replication_factor

session.execute("""
ALTER KEYSPACE system_auth
WITH replication = {'class':'SimpleStrategy', 'replication_factor':3};
""")

> assert 3 == auth_metadata.replication_strategy.replication_factor

auth_test.py:102:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tools/metadata_wrapper.py:10: in __getattr__
return getattr(self._wrapped, name)
tools/metadata_wrapper.py:57: in _wrapped
self._cluster.refresh_keyspace_metadata(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cassandra.cluster.Cluster object at 0x7f10dc089b20>
keyspace = 'system_auth', max_schema_agreement_wait = 60

def refresh_keyspace_metadata(self, keyspace, max_schema_agreement_wait=None):
"""
Synchronously refresh keyspace metadata. This applies to keyspace-level information such as replication
and durability settings. It does not refresh tables, types, etc. contained in the keyspace.

See :meth:`~.Cluster.refresh_schema_metadata` for description of ``max_schema_agreement_wait`` behavior
"""
if not self.control_connection.refresh_schema(target_type=SchemaTargetType.KEYSPACE, keyspace=keyspace,
schema_agreement_wait=max_schema_agreement_wait, force=True):
> raise DriverException("Keyspace metadata was not refreshed. See log for details.")
E cassandra.DriverException: Keyspace metadata was not refreshed. See log for details.

../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:2162: DriverException
35.900
8_cythonno_x86_64_11_64test_multi_partition_consistent_reads_after_writeFailureOSError: handle is closed

self = <materialized_views_test.TestMaterializedViewsConsistency object at 0x7f48b2e8fb50>

def test_multi_partition_consistent_reads_after_write(self):
"""
Tests consistency of multiple writes to a multiple partitions

@jira_ticket CASSANDRA-10981
"""
> self._consistent_reads_after_write_test(5)

materialized_views_test.py:2846:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
materialized_views_test.py:2923: in _consistent_reads_after_write_test
mm = queues[i % processes].get(timeout=60)
/usr/lib/python3.8/multiprocessing/queues.py:111: in get
res = self._recv_bytes()
/usr/lib/python3.8/multiprocessing/connection.py:212: in recv_bytes
self._check_closed()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <multiprocessing.connection.Connection object at 0x7f48836b49a0>

def _check_closed(self):
if self._handle is None:
> raise OSError("handle is closed")
E OSError: handle is closed

/usr/lib/python3.8/multiprocessing/connection.py:136: OSError
134.096