You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dmitry Kropachev (Jira)" <ji...@apache.org> on 2020/04/16 07:29:00 UTC

[jira] [Created] (CASSANDRA-15735) Add serial consistency option and regular and serial consistency into profile yaml

Dmitry Kropachev created CASSANDRA-15735:
--------------------------------------------

             Summary: 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
         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

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org