cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-10785) Lightweight transactions problem: SERIAL is not supported as conditional update commit consistency
Date Mon, 30 Nov 2015 09:51:11 GMT

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

Sylvain Lebresne resolved CASSANDRA-10785.
------------------------------------------
    Resolution: Not A Problem

> Lightweight transactions problem: SERIAL is not supported as conditional update commit
consistency
> --------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-10785
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10785
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: ant_nebula
>
> {code}
> preparedStatement = session.prepare("insert into table_x(key) values (?) IF NOT EXISTS")
> preparedStatement.setConsistencyLevel(ConsistencyLevel.ONE)
> {code}
> this code sometimes throw Exception :
> {code}
> com.datastax.driver.core.exceptions.InvalidQueryException: 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"
>         at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:35)
>         at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:289)
>         at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205)
>         at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52)
>         at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at com.datastax.spark.connector.cql.SessionProxy.invoke(SessionProxy.scala:33)
>         at com.sun.proxy.$Proxy20.execute(Unknown Source)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message