Unit Test Results.

Designed for use with JUnit and Ant.

Class dtest_jdk11_python3.8_cythonno_x86_64_19_64

NameTestsErrorsFailuresSkippedTime(s)Time StampHost
8_cythonno_x86_64_19_64170151094.7892024-09-04T19:36:29.899258699a59260059

Tests

NameStatusTypeTime(s)
test_dropping_nonexistent_user_throws_exceptionSuccess43.449
test_inheritence_of_udf_permissionsSuccess25.433
test_simultaneous_bootstrapSuccess6.337
test_simultaneous_bootstrapFailurecassandra.OperationTimedOut: errors={'127.0.0.2:9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.2:9042

self = <bootstrap_test.TestBootstrap object at 0x7f379130bbb0>

@since('2.1.1', max_version='5.0.x')
def test_simultaneous_bootstrap(self):
"""
Attempt to bootstrap two nodes at once, to assert the second bootstrapped node fails, and does not interfere.

Start a one node cluster and run a stress write workload.
Start up a second node, and wait for the first node to detect it has joined the cluster.
While the second node is bootstrapping, start a third node. This should fail.

@jira_ticket CASSANDRA-7069
@jira_ticket CASSANDRA-9484
"""

bootstrap_error = "Other bootstrapping/leaving/moving nodes detected," \
" cannot bootstrap while cassandra.consistent.rangemovement is true"

cluster = self.cluster
cluster.set_environment_variable('CASSANDRA_TOKEN_PREGENERATION_DISABLED', 'True')
cluster.populate(1)
cluster.start()

node1, = cluster.nodelist()

node1.stress(['write', 'n=500K', 'no-warmup', '-schema', 'replication(factor=1)',
'-rate', 'threads=10'])

node2 = new_node(cluster)
node2.start()

for _ in range(30): # wait until node2 shows up
ntout = node1.nodetool('status').stdout
if re.search(r'UJ\s+' + node2.ip_addr, ntout):
break
time.sleep(0.1)

node3 = new_node(cluster, remote_debug_port='2003')
try:
node3.start(wait_other_notice=False, verbose=False)
except NodeError:
pass # node doesn't start as expected

time.sleep(.5)
node2.watch_log_for("Starting listening for CQL clients")

node3.watch_log_for(bootstrap_error)

session = self.patient_exclusive_cql_connection(node2)

# Repeat the select count(*) query, to help catch
# bugs like 9484, where count(*) fails at higher
# data loads.
for _ in range(5):
> assert_one(session, "SELECT count(*) from keyspace1.standard1", [500000], cl=ConsistencyLevel.ONE)

bootstrap_test.py:932:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tools/assertions.py:130: in assert_one
res = session.execute(simple_query)
../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 count(*) from keyspace1.standard1", consistency=ONE>' request_i...9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.2:9042 coordinator_host=None>

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.OperationTimedOut: errors={'127.0.0.2:9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.2:9042

../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:4894: OperationTimedOut
207.594
test_create_lots_of_indexes_concurrentlySkippedawaiting CASSANDRA-10699

/home/cassandra/cassandra-dtest/concurrent_schema_changes_test.py:195: awaiting CASSANDRA-10699
0.001
test_local_querySuccess125.618
test_delete_using_pkey_jsonSuccess23.025
test_connect_to_ssl_optionalSuccess33.797
test_paging_with_empty_row_and_empty_static_columnsSuccess50.778
test_update_on_static_column_with_not_empty_partitionSuccess58.891
test_failed_snitch_update_yaml_file_snitchSkipped5.0.1 > 2.1.x

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 2.1.x
0.356
test_dont_archive_commitlogSuccess221.153
test_super_subcolumn_limitSkipped5.0.1 > 4

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4
0.683
test_insert_ttlSkipped5.0.1 > 4

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4
0.334
test_expiration_overflow_policy_capnowarnSuccess39.570
test_describe_mvSuccess25.560
test_reading_use_headerSuccess21.584
test_force_repair_range_async_1Skipped5.0.1 > 4

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4
0.380
Properties »