Consider a cluster of 4 nodes.
The replication factor has been set to 3.
We gave a write query with consistency level set to ALL but only one of the replicas successfully wrote the data and the other two never responded. (crashed during write)
In this situation, the coordinator responds with TimeOutException
so we think that our request failed to persist.
Then we gave a read query for the same row_key with consistency level set to 1, coordinator sends this request to the same node which was successfully written the previous request.
My question is what happens next? whether this read query returns with value? and if so does this behavior really make any sense because we threw UnavailableException in the first place?
StorageProxy.java
) before writing the data to check if we're able to reach given CL at all. So in this case we shouldn't send write request to any node. – Alex Ott