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

Unintended update with conditional statement

    XMLWordPrintableJSON

    Details

    • Severity:
      Normal
    • Since Version:

      Description

      After updated to 2.0.6, I have encountered the strange behavior of conditional updates.

      When I executed CQL like UPDATE test SET value = ? WHERE id = ? IF value = ? in concurrent, sometimes cassandra returns true even if value is not satisfied the condition.

      I have attached the program which reproduce this issue. The program works fine in cassandra 2.0.5. But it seems that resets values while execution in 2.0.6.

        Attachments

        1. ConcurrentCASUpdate.java
          3 kB
          Suguru Namura
        2. 6893.txt
          13 kB
          Sylvain Lebresne

          Activity

            People

            • Assignee:
              slebresne Sylvain Lebresne
              Reporter:
              snamura Suguru Namura
              Authors:
              Sylvain Lebresne
              Reviewers:
              Aleksey Yeschenko
              Tester:
              Michael Shuler
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: