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

Improve CQL3 batchlog support

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0 beta 2
    • None
    • None

    Description

      This is a follow-up on CASSANDRA-4545. We've made batch be atomic by default, however it is actually possible for normal inserts to not be atomic by default thanks to the support of the IN notation.

      I don't think this is very coherent so I suggest the two following changes:

      • make sure normal inserts/deletes are always atomic ("logged")
      • make sure we use mutate (rather than mutateAtomically) if there is only one mutation (i.e. use the batch log in normal inserts/deletes only if there is an IN).

      And if people really want to do "unlogged" insert with IN, they can put the insert inside an unlogged batch.

      Attachments

        1. 4738.txt
          7 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: