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

Data from truncated CF reappears after server restart

    XMLWordPrintableJSON

Details

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

    Description

      • Configure 3 node cluster
      • Ensure the java stress tool creates Keyspace1 with RF=3
      // Run Stress Tool to generate 10 keys, 1 column
      stress --operation=INSERT -t 2 --num-keys=50 --columns=20 --consistency-level=QUORUM --average-size-values --replication-factor=3 --create-index=KEYS --nodes=cathy1,cathy2
      
      // Verify 50 keys in CLI
      use Keyspace1; 
      list Standard1; 
      
      // TRUNCATE CF in CLI
      use Keyspace1;
      truncate counter1;
      list counter1;
      
      // Run stress tool and verify creation of 1 key with 10 columns
      stress --operation=INSERT -t 2 --num-keys=1 --columns=10 --consistency-level=QUORUM --average-size-values --replication-factor=3 --create-index=KEYS --nodes=cathy1,cathy2
      
      // Verify 1 key in CLI
      use Keyspace1; 
      list Standard1; 
      
      // Restart all three nodes
      
      // You will see 51 keys in CLI
      use Keyspace1; 
      list Standard1; 
      

      Attachments

        1. 2950-v3_0.8.patch
          9 kB
          Sylvain Lebresne
        2. 2950-v2.txt
          10 kB
          Jonathan Ellis
        3. 2950.txt
          9 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            cdaw Cathy Daw
            Jonathan Ellis
            Sylvain Lebresne
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: