test_consistent_skinny_table | Failure | cassandra.ReadFailure: Error from server: code=1300 [Replica(s) failed to execute read] message="Operation failed - received 1 responses and 1 failures: INDEX_NOT_AVAILABLE from /127.0.0.2:7000" info={'consistency': 'ALL', 'required_responses': 2, 'received_responses': 1, 'failures': 1, 'error_code_map': {'127.0.0.2': '0x0006'}}
self = <replica_side_filtering_test.TestSecondaryIndexes object at 0x7fc5499546d0>
def test_consistent_skinny_table(self):
self._prepare_cluster(
create_table="CREATE TABLE t (k int PRIMARY KEY, v text)",
create_index="CREATE INDEX ON t(v)",
both_nodes=["INSERT INTO t(k, v) VALUES (1, 'old')", # updated to 'new'
"INSERT INTO t(k, v) VALUES (2, 'old')",
"INSERT INTO t(k, v) VALUES (3, 'old')", # updated to 'new'
"INSERT INTO t(k, v) VALUES (4, 'old')",
"INSERT INTO t(k, v) VALUES (5, 'old')", # deleted partition
"UPDATE t SET v = 'new' WHERE k = 1",
"UPDATE t SET v = 'new' WHERE k = 3",
"DELETE FROM t WHERE k = 5"])
> self._assert_one("SELECT * FROM t WHERE v = 'old' LIMIT 1", row=[2, 'old'])
replica_side_filtering_test.py:453:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
replica_side_filtering_test.py:90: in _assert_one
assert_one(self.session, decorated_query, row)
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 * FROM t WHERE v = 'old' LIMIT 1", consistency=Not Set>' reques... 2, 'received_responses': 1, 'failures': 1, 'error_code_map': {'127.0.0.2': '0x0006'}} 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.ReadFailure: Error from server: code=1300 [Replica(s) failed to execute read] message="Operation failed - received 1 responses and 1 failures: INDEX_NOT_AVAILABLE from /127.0.0.2:7000" info={'consistency': 'ALL', 'required_responses': 2, 'received_responses': 1, 'failures': 1, 'error_code_map': {'127.0.0.2': '0x0006'}}
../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:4894: ReadFailure | 27.013 |