You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "ant_nebula (JIRA)" <ji...@apache.org> on 2015/11/30 10:12:11 UTC
[jira] [Created] (CASSANDRA-10785) Lightweight transactions
problem: SERIAL is not supported as conditional update commit consistency
ant_nebula created CASSANDRA-10785:
--------------------------------------
Summary: 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)