[ 
https://issues.apache.org/jira/browse/CASSANDRA-9313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko updated CASSANDRA-9313:
-----------------------------------------
    Component/s: CQL

> Clarify errors when attempting to write at SERIAL
> -------------------------------------------------
>
>                 Key: CASSANDRA-9313
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9313
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL
>            Reporter: Brandon Williams
>            Priority: Minor
>             Fix For: 2.1.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)

Reply via email to