[
https://issues.apache.org/jira/browse/CASSANDRA-15735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Kropachev updated CASSANDRA-15735:
-----------------------------------------
Description:
Needed to be done in order to be able to control serial consistency and regular
consistency levels separately.
For instance, it was not possible to set serial consistency to LOCAL_SERIAL and
regular consistency to QUORUM.
We have following code handling it all over the place:
if (cl.isSerialConsistency())
statement.setSerialConsistencyLevel(JavaDriverClient.from(cl)); else
statement.setConsistencyLevel(JavaDriverClient.from(cl));
With the fix it beacome possible to set serial and regular consistency
separately, also it is possible to specify consistency in yaml file per query,
in case you want to stress with dirrefent consistency levels, in following
manner:
lwt_update_one_column:
cql: update blogposts set lwt_ind = 10000001 where domain = ? and
published_date = ? if lwt_ind < 0
fields: samerow
consistencyLevel: QUORUM
serialConsistencyLevel: LOCAL_SERIAL
Fix: [https://github.com/apache/cassandra/pull/540]
was:
Needed to be done in order to be able to control serial consistency and regular
consistency levels separately.
For instance, it was not possible to set serial consistency to LOCAL_SERIAL and
regular consistency to QUORUM.
We have following code handling it all over the place:
if (cl.isSerialConsistency())
statement.setSerialConsistencyLevel(JavaDriverClient.from(cl)); else
statement.setConsistencyLevel(JavaDriverClient.from(cl));
With the fix it beacome possible to set serial and regular consistency
separately, also it is possible to specify consistency in yaml file per query,
in case you want to stress with dirrefent consistency levels, in following
manner:
lwt_update_one_column:
cql: update blogposts set lwt_ind = 10000001 where domain = ? and
published_date = ? if lwt_ind < 0
fields: samerow
consistencyLevel: QUORUM
serialConsistencyLevel: LOCAL_SERIAL
> Add serial consistency option and regular and serial consistency into profile
> yaml
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-15735
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15735
> Project: Cassandra
> Issue Type: Bug
> Components: Tool/stress
> Reporter: Dmitry Kropachev
> Priority: Normal
> Fix For: 4.x
>
> Attachments: profile.yaml
>
>
> Needed to be done in order to be able to control serial consistency and
> regular consistency levels separately.
> For instance, it was not possible to set serial consistency to LOCAL_SERIAL
> and regular consistency to QUORUM.
> We have following code handling it all over the place:
> if (cl.isSerialConsistency())
> statement.setSerialConsistencyLevel(JavaDriverClient.from(cl)); else
> statement.setConsistencyLevel(JavaDriverClient.from(cl));
> With the fix it beacome possible to set serial and regular consistency
> separately, also it is possible to specify consistency in yaml file per
> query, in case you want to stress with dirrefent consistency levels, in
> following manner:
> lwt_update_one_column:
> cql: update blogposts set lwt_ind = 10000001 where domain = ? and
> published_date = ? if lwt_ind < 0
> fields: samerow
> consistencyLevel: QUORUM
> serialConsistencyLevel: LOCAL_SERIAL
>
> Fix: [https://github.com/apache/cassandra/pull/540]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]