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_64170151195.0452024-08-15T20:38:17.209162c4317a8d4dd0

Tests

NameStatusTypeTime(s)
test_dropping_nonexistent_user_throws_exceptionSuccess27.185
test_inheritence_of_udf_permissionsSuccess28.122
test_simultaneous_bootstrapSuccess6.396
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 0x7f1d90cca880>

@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
188.665
test_create_lots_of_indexes_concurrentlySkippedawaiting CASSANDRA-10699

/home/cassandra/cassandra-dtest/concurrent_schema_changes_test.py:195: awaiting CASSANDRA-10699
0.001
test_remote_querySuccess181.607
test_simple_schemaSuccess30.798
test_use_custom_portSuccess149.365
test_data_change_impacting_earlier_pageSuccess45.943
test_update_on_collectionSuccess60.529
test_switch_data_center_startup_failsSuccess37.842
test_archive_commitlog_point_in_timeSuccess189.740
test_long_orderSkipped5.0 > 4

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0 > 4
1.048
test_insert_max_ttlSkipped5.0 > 4

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0 > 4
0.290
test_expiration_overflow_policy_capnowarn_default_ttlSuccess36.572
test_copy_toSuccess21.622
test_datetimeformat_round_tripSkipped5.0 > 3.X

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0 > 3.X
0.239
test_force_repair_range_async_2Skipped5.0 > 4

/home/cassandra/cassandra-dtest/conftest.py:468: 5.0 > 4
0.219
Properties »