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

Counters in columns don't preserve correct values after cluster restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.1.3
    • None
    • None
    • Normal

    Description

      Similar to #3821. but affecting normal columns.

      Set up a 2-node cluster with rf=2.
      1. Create a counter column family and increment a 100 keys in loop 5000 times.
      2. Then make a rolling restart to cluster.
      3. Again increment another 5000 times.
      4. Make a rolling restart to cluster.
      5. Again increment another 5000 times.
      6. Make a rolling restart to cluster.

      After step 6 we were able to reproduce bug with bad counter values.
      Expected values were 15 000. Values returned from cluster are higher then 15000 + some random number.
      Rolling restarts are done with nodetool drain. Always waiting until second node discover its down then kill java process.

      Attachments

        1. 4436-1.0.txt
          13 kB
          Sylvain Lebresne
        2. 4436-1.0-2.txt
          13 kB
          Sylvain Lebresne
        3. 4436-1.0-2.txt
          13 kB
          Sylvain Lebresne
        4. 4436-1.1.txt
          13 kB
          Sylvain Lebresne
        5. 4436-1.1-2.txt
          16 kB
          Sylvain Lebresne
        6. 4436-1.1-2.txt
          16 kB
          Sylvain Lebresne
        7. increments.cql.gz
          34 kB
          Peter Velas

        Activity

          People

            slebresne Sylvain Lebresne
            pvelas Peter Velas
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: