Name | Status | Type | Time(s) |
test_list_roles | Success | | 23.599 |
test_each_statement_in_batch_uses_proper_timestamp | Success | | 12.939 |
test_bloomfilter_size[LeveledCompactionStrategy] | Success | | 115.382 |
test_quorum_available_during_failure | Success | | 41.645 |
test_2dc_parallel_startup | Success | | 244.899 |
test_rename_column_atomicity | Success | | 2.363 |
test_rename_column_atomicity | Failure | cassandra.OperationTimedOut: errors={'127.0.0.1:9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
self = <materialized_views_test.TestMaterializedViews object at 0x7fb100b4cb50>
def test_rename_column_atomicity(self):
"""
Test that column renaming is atomically done between a table and its materialized views
@jira_ticket CASSANDRA-12952
"""
session = self.prepare(nodes=1, user_table=True, install_byteman=True)
node = self.cluster.nodelist()[0]
self._insert_data(session)
assert_one(
session,
"SELECT * FROM users_by_state WHERE state = 'TX' AND username = 'user1'",
['TX', 'user1', 1968, 'f', 'ch@ngem3a', None]
)
# Rename a column with an injected byteman rule to kill the node after the first schema update
self.fixture_dtest_setup.allow_log_errors = True
script_version = '5_1' if self.cluster.version() >= LooseVersion('5.1') else '4x' if self.cluster.version() >= '4' else '3x'
node.byteman_submit([mk_bman_path('merge_schema_failure_{}.btm'.format(script_version))])
with pytest.raises(NoHostAvailable):
> session.execute("ALTER TABLE users RENAME username TO user")
materialized_views_test.py:994:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../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="ALTER TABLE users RENAME username TO user", consistency=Not Set>' requ...9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1: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.1:9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.1:9042
../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:4894: OperationTimedOut | 26.308 |
test_with_allow_filtering | Success | | 37.132 |
test_non_local_read | Skipped | ported to in-JVM from 4.0 >= 5.0
/home/cassandra/cassandra-dtest/conftest.py:526: ported to in-JVM from 4.0 >= 5.0 | 0.272 |
test_count | Success | | 47.892 |
test_drop_column_queries | Success | | 11.248 |
test_sstableloader_uppercase_keyspace_name | Success | | 143.793 |
test_super_cf_remove_and_range_slice | Skipped | 5.0 > 4
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0 > 4 | 0.506 |
test_index_scan | Skipped | 5.0 > 4
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0 > 4 | 0.695 |
test_update_multiple_columns_ttl | Success | | 23.908 |
test_unicode_invalid_request_error | Success | | 19.116 |
test_letter_delimiter | Success | | 17.481 |
test_copy_from_with_brackets_in_UDT | Success | | 23.198 |
test_thread_count_repair | Success | | 277.234 |