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

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

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            dkropachev Dmitry Kropachev

            Dates

              Created:
              Updated:

              Time Tracking

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

                Slack

                  Issue deployment