ConsistenceLevel ONE even setting LOCAL_ONE on client
263 views
Skip to first unread message
Luiz Carlos C. Carvalho Jr.
unread,
Feb 10, 2015, 3:06:25 PM2/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-dr...@lists.datastax.com
Hello,
I'm having the following log in my application (timeout with CL ONE):
WriteTimeout: code=1100 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 0 responses." info={'received_responses': 0, 'required_responses': 1, 'consistency': 'ONE'}
But the cluster and session are created with this code:
I use prepared statement with TokenAware(DCAwareRoundRobin) policy. The question is: why is the query been applied with CL ONE if the client was configured with LOCAL_ONE as default consistence level ?
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-dr...@lists.datastax.com
Luiz,
I don't see anything wrong with the snippet you posted. If you can share more of your script around cluster initialization, and statement prep, I may be able to troubleshoot a little more.
WriteTimeout: code=1100 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 0 responses." info={'received_responses': 0, 'required_responses': 1, 'consistency': 'ONE'}
This would normally indicate that you contacted a node that did not have a replica, and the write timed out between this coordinator and a replica. However, if you are using TokenAware, it should be hitting a replica node directly. I don't actually see the cluster being initialized in your snippet, so I can't tell why that might not be working.
Regarding ONE vs LOCAL_ONE: The consistency level indicated in this WriteTimeout is reported back from server side. If this is reproducible, I would suggest asking on the Cassandra Users list, and/or writing up a JIRA ticket. There have been issues before with reporting consistency levels that did not reflect what was actually being used internally.