cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-9313) Clarify errors when attempting to write at SERIAL
Date Fri, 30 Oct 2015 13:29:27 GMT

     [ 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)

Mime
View raw message