Skip to content

Default Write Consistency to LOCAL_QOUROM #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mangat2022 opened this issue Mar 26, 2025 · 1 comment · Fixed by #142
Closed

Default Write Consistency to LOCAL_QOUROM #139

mangat2022 opened this issue Mar 26, 2025 · 1 comment · Fixed by #142

Comments

@mangat2022
Copy link

Astra don't support ANY, ONE or LOCAL_ONE consistencies for write statements.

CQL proxy should be able to default write latency to LOCAL_QOUROM in these scenarios.

@shari0311
Copy link
Collaborator

The consistency level setting here doesn’t seem to be picked up by Astra.

Running Simple Java Driver With LOCAL_ONE consistency

Provided value LOCAL_ONE is not allowed for Write Consistency Level (disallowed values are: [ANY, ONE, LOCAL_ONE])

Proxy logs showing overriding consistency :

{"level":"info","ts":1743118825.639761,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:0750e59f-441b-37bb-b0a7-e097c5d725f7","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.639889,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:190dafab-6970-3a67-a21c-1226360de7dc","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.63991,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:678e6a1d-e5b1-3cba-b949-7bfaf823957f","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.6399271,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:98a2cd7e-fa1b-3950-942e-42af495c4248","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.640152,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:9e3a5bee-3d95-3bf7-90f5-09bd2177324b","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.6402628,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:b4f6d9ed-0f1d-3f7a-82f1-a4a7ea4f84d4","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.6402931,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:00694036-11ec-39fb-8238-d79afd9b0e46","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.640333,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:00958fd0-af98-391f-9f51-7e3fe763da5c","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.640907,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:0669df0f-031f-383e-b452-67a9679bbc6a","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.640958,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:0750e59f-441b-37bb-b0a7-e097c5d725f7","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.640985,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:190dafab-6970-3a67-a21c-1226360de7dc","consistency":"ConsistencyLevel QUORUM [0x0004]"}
{"level":"info","ts":1743118825.886563,"caller":"proxy/request.go:72","msg":"sending request to host","host":"92a0d34b-56c0-4e8e-985e-79928b462694-us-west-2.db.astra-dev.datastax.com:29042:678e6a1d-e5b1-3cba-b949-7bfaf823957f","consistency":"ConsistencyLevel QUORUM [0x0004]"}

@mpenick Need your help on this ?

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 a pull request may close this issue.

2 participants