python-driver
python-driver copied to clipboard
[unstable] test_raise_error_on_prepared_statement_execution_dropped_table fails on latest 3.28.0 run
Not sure if it's reproducible yet, but this test failed on the latest master run:
def test_raise_error_on_prepared_statement_execution_dropped_table(self):
"""
test for error in executing prepared statement on a dropped table
test_raise_error_on_execute_prepared_statement_dropped_table tests that an InvalidRequest is raised when a
prepared statement is executed after its corresponding table is dropped. This happens because if a prepared
statement is invalid, the driver attempts to automatically re-prepare it on a non-existing table.
@expected_errors InvalidRequest If a prepared statement is executed on a dropped table
@since 2.6.0
@jira_ticket PYTHON-207
@expected_result InvalidRequest error should be raised upon prepared statement execution.
@test_category prepared_statements
"""
self.session.execute("CREATE TABLE test3rf.error_test (k int PRIMARY KEY, v int)")
prepared = self.session.prepare("SELECT * FROM test3rf.error_test WHERE k=?")
self.session.execute("DROP TABLE test3rf.error_test")
with self.assertRaises(InvalidRequest):
self.session.execute(prepared, [0])
AssertionError: InvalidRequest not raised (no-type)
it's not new test, we'll need to run it locally to cross check if it's not a scylla regression
it's not new test, we'll need to run it locally to cross check if it's not a scylla regression
INFO:root:=== (datastax:3.28.0) PYTHON DRIVER MATRIX RESULTS FOR PROTOCOL v3 ===
INFO:root:tests: 1, errors: 0, failures: 0, skipped: 0, xpassed: 0, xfailed: 0, passed: 1, ignored_in_analysis: 0, flaky: 0
Passes locally, so may be an environment issue of some kind.