[ https://issues.apache.org/jira/browse/CASSANDRA-7067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylvain Lebresne updated CASSANDRA-7067: ---------------------------------------- Attachment: 7067.txt Attaching a patch for 2.0 that, in the spirit of CASSANDRA-6649, don't yet refuse the query but warn in the log that 1) the use of timestamp is incorrect and has been ignored and 2) that such query will be refused completely in 2.1+. I'll turns those to InvalidRequestException in 2.1 while merging upon commit. The patch also refuse timestamps on counter batch while at it since that's also invalid but was not handled by CASSANDRA-6649. > Refuse CAS batch that have a 'USING TIMESTAMP' > ---------------------------------------------- > > Key: CASSANDRA-7067 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7067 > Project: Cassandra > Issue Type: Sub-task > Reporter: Mikhail Stepura > Priority: Minor > Labels: lhf > Fix For: 2.0.8 > > Attachments: 7067.txt > > > Cassandra must refuse BATCHes with {{TIMESTAMP}}, if they contain a CAS > statement(s). Like this one: > {code} > BEGIN BATCH USING TIMESTAMP 1111111111111111 > INSERT INTO users (id, firstname, lastname) VALUES (999, 'Jack', 'Sparrow') > IF NOT EXISTS > APPLY BATCH > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)