Skip to content

Conversation

@Annopaolo
Copy link
Contributor

ANY is the lowest possible CL for writes. Allow queries to run with :any consistency instead of crashing.

Closes #380

@Annopaolo
Copy link
Contributor Author

@whatyouhide I did not find any test for CLs, and given that :any is already in protocol.ex I tested by hand and indeed it worked. If there's more to do, I'm happy to contribute!

@whatyouhide
Copy link
Owner

I did not find any test for CLs

Can you add one? Just a simple INSERT query that uses just ANY as the consistency for now. Just to make sure we steer away from regressions 🙃

@Annopaolo Annopaolo force-pushed the support-any-consistency branch from 5ccb493 to c5bd8ab Compare March 13, 2025 17:03
@Annopaolo
Copy link
Contributor Author

@whatyouhide here you are, sorry for the delay. I added a new test case because it seemed no files checked for consistency levels, but I can change if needed

@whatyouhide
Copy link
Owner

Ah that new test is failing. Is it passing locally? It might be failing on a diff protocol version.

`ANY` is the lowest possible CL for writes.
Allow queries to run with `:any` consistency instead of crashing.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
@Annopaolo Annopaolo force-pushed the support-any-consistency branch from c5bd8ab to f268f67 Compare March 21, 2025 13:17
@Annopaolo
Copy link
Contributor Author

Done, I was missing a parameter 😅

@whatyouhide whatyouhide merged commit 7c5457d into whatyouhide:main Mar 30, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for ANY consistency

2 participants