Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-15735

Add serial consistency option and regular and serial consistency into profile yaml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Triage Needed
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Tool/stress
    • None
    • Correctness - API / Semantic Implementation
    • Normal
    • Low Hanging Fruit
    • User Report
    • All
    • None

    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

      Attachments

        1. profile.yaml
          2 kB
          Dmitry Kropachev

        Activity

          People

            Unassigned Unassigned
            dkropachev Dmitry Kropachev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m