Name | Status | Type | Time(s) |
test_cant_create_existing_user | Success | | 23.492 |
test_udf_permissions_in_selection | Success | | 24.242 |
test_killed_wiped_node_cannot_join | Success | | 187.332 |
test_compression_cql_options | Success | | 17.413 |
test_prepared_statement_invalidation | Success | | 14.895 |
test_collection_update | Success | | 21.251 |
test_metadata_reset_while_compact | Skipped | hangs CI
/home/cassandra/cassandra-dtest/metadata_test.py:30: hangs CI | 0.000 |
test_paging_with_no_clustering_columns | Success | | 39.580 |
test_replace_with_insufficient_replicas | Success | | 4.827 |
test_replace_with_insufficient_replicas | Failure | AssertionError
self = <replace_address_test.TestReplaceAddress object at 0x7fb9e08c4520>
def test_replace_with_insufficient_replicas(self):
"""
Test that replace fails when there are insufficient replicas
@jira_ticket CASSANDRA-11848
"""
self.fixture_dtest_setup.ignore_log_patterns = list(self.fixture_dtest_setup.ignore_log_patterns) + [
r'Unable to find sufficient sources for streaming range']
self._setup(n=3)
self._insert_data(rf=2)
self._stop_node_to_replace()
# stop other replica. For CEP-21 purposes, we need to ensure this is not
# the cluster's only CMS member
logger.debug("Stopping other replica")
self.cluster.nodelist()[1].stop(wait_other_notice=True)
options = {}
# CEP-21: availability is intentionally degraded, so we lower the required number of
# acks required for the replacement node to progress to a point where it attempts to
# perform streaming
if self.cluster.version() >= LooseVersion('5.1'):
options = {'progress_barrier_min_consistency_level': 'ONE',
'progress_barrier_default_consistency_level': 'ONE'}
self._do_replace(wait_for_binary_proto=False,
wait_other_notice=False,
opts=options)
# replace should fail due to insufficient replicas
self.replacement_node.watch_log_for("Unable to find sufficient sources for streaming range")
> assert_not_running(self.replacement_node)
replace_address_test.py:640:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
node = <ccmlib.node.Node object at 0x7fb9e08f49d0>
def assert_not_running(node):
"""
Assert that a given node is not running
@param node The node to check status
"""
attempts = 0
while node.is_running() and attempts < 10:
sleep(1)
attempts = attempts + 1
> assert not node.is_running()
E AssertionError
tools/assertions.py:282: AssertionError | 118.221 |
test_rf_collapse_yaml_file_snitch | Skipped | 5.0.1 > 2.1.x
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 2.1.x | 0.290 |
test_basic_snapshot_and_restore | Failure | cassandra.Unavailable: Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level ONE" info={'consistency': 'ONE', 'required_replicas': 1, 'alive_replicas': 0}
self = <snapshot_test.TestSnapshot object at 0x7fb9e0888be0>
def test_basic_snapshot_and_restore(self):
cluster = self.cluster
cluster.populate(1).start()
(node1,) = cluster.nodelist()
session = self.patient_cql_connection(node1)
self.create_schema(session)
> self.insert_rows(session, 0, 100)
snapshot_test.py:99:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
snapshot_test.py:34: in insert_rows
execute_concurrent_with_args(session, insert_statement, args, concurrency=20)
../cassandra/build/venv/src/cassandra-driver/cassandra/concurrent.py:238: in execute_concurrent_with_args
return execute_concurrent(session, zip(cycle((statement,)), parameters), *args, **kwargs)
../cassandra/build/venv/src/cassandra-driver/cassandra/concurrent.py:94: in execute_concurrent
return executor.execute(concurrency, raise_on_first_error)
../cassandra/build/venv/src/cassandra-driver/cassandra/concurrent.py:201: in execute
return super(ConcurrentExecutorListResults, self).execute(concurrency, fail_fast)
../cassandra/build/venv/src/cassandra-driver/cassandra/concurrent.py:120: in execute
return self._results()
../cassandra/build/venv/src/cassandra-driver/cassandra/concurrent.py:219: in _results
self._raise(self._exception)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exc = Unavailable('Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level ONE" info={\'consistency\': \'ONE\', \'required_replicas\': 1, \'alive_replicas\': 0}')
@staticmethod
def _raise(exc):
if six.PY2 and isinstance(exc, tuple):
(exc_type, value, traceback) = exc
six.reraise(exc_type, value, traceback)
else:
> raise exc
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/concurrent.py:167: Unavailable | 22.770 |
test_count | Skipped | 5.0.1 > 4
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4 | 0.289 |
test_column_validators | Skipped | 5.0.1 > 4
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4 | 0.232 |
test_collection_set_ttl | Failure | cassandra.Unavailable: Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level ONE" info={'consistency': 'ONE', 'required_replicas': 2, 'alive_replicas': 1}
self = <ttl_test.TestTTL object at 0x7fb9e08052b0>
def test_collection_set_ttl(self):
"""
Test that ttl has a granularity of elements using a set collection.
"""
self.prepare(default_time_to_live=10)
self.session1.execute("ALTER TABLE ttl_table ADD myset set<int>;""")
start = time.time()
> self.session1.execute("""
INSERT INTO ttl_table (key, col1, myset) VALUES (%d, %d, %s);
""" % (1, 1, '{1,2,3,4,5}'))
ttl_test.py:281:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../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="
INSERT INTO ttl_table (key, col1, myset) VALUES (1, 1, {1...cy level ONE" info={'consistency': 'ONE', 'required_replicas': 2, 'alive_replicas': 1} coordinator_host=127.0.0.1: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': 2, 'alive_replicas': 1}
../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:4894: Unavailable | 22.545 |
test_describe_describes_non_default_compaction_parameters | Success | | 15.200 |
test_null_as_null_indicator | Success | | 19.103 |
test_reading_empty_strings_for_different_types | Success | | 18.479 |