Brandon Williams created CASSANDRA-9313:
-------------------------------------------
Summary: Clarify errors when attempting to write at SERIAL
Key: CASSANDRA-9313
URL: https://issues.apache.org/jira/browse/CASSANDRA-9313
Project: Cassandra
Issue Type: Bug
Components: Core
Reporter: Brandon Williams
Fix For: 2.0.x
[LOCAL_]SERIAL does not support writes, but the errors can be very confusing if
you don't know this:
{noformat}
cqlsh:foo> INSERT INTO bar (foo ) VALUES ( 'foo' ) ;
InvalidRequest: code=2200 [Invalid query] message="You must use conditional
updates for serializable writes"
cqlsh:foo> INSERT INTO bar (foo ) VALUES ( 'foo' ) if NOT EXISTS ;
InvalidRequest: code=2200 [Invalid query] message="SERIAL is not supported as
conditional update commit consistency. Use ANY if you mean "make sure it is
accepted but I don't care how many replicas commit it for non-SERIAL reads""
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)