Skip to content

Add query-level tunable consistency #130

merged 1 commit into from Nov 4, 2013

2 participants

mrvisser commented Nov 2, 2013

This PR provides the ability to supply a consistencyLevel query option that specifies the consistency level to use for a CQL3 query.

The connection.consistencylevel that is provided when creating the connection is now referred to as the "default consistency level" for queries.

To test, I changed the keyspace used in CQL3 tests to have RF=3. Since the default consistency level of the connections is ONE, all tests continue to succeed. To verify the query-level consistency, I try a simple query overriding the consistency to quorum and ensure it fails.

@devdazed devdazed merged commit a8cfdac into simplereach:master Nov 4, 2013

1 check passed

Details default The Travis CI build passed
@mrvisser mrvisser deleted the mrvisser:cql3-query-consistency branch Nov 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.