scassandra / scassandra-server

Stubbed Cassandra
http://www.scassandra.org
Other
87 stars 34 forks source link

Allow altering of consistency level returned in Read Timeout, Write Timeout and Unavailable errors #142

Closed tolbertam closed 8 years ago

tolbertam commented 8 years ago

Certain queries can yield read timeout, write timeout and unavailable errors with a different consistency level than that which was used.

A good example of this is making a CAS query (like update..if exists). The consistency level returned in an error can be the Serial CL instead of the regular CL if the error happened as part of the paxos phase.

ReadTimeoutConfig, WriteTimeoutConfig and UnavailableConfig could be updated to accept an optional Consistency level for which when the error is raised it includes that CL.

tolbertam commented 8 years ago

Done via #143