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

After a minor compaction, deleted key-slices are visible again

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.8.8, 1.0.4
    • None
    • Reproduced on single Cassandra node (CentOS 5.5)
      Reproduced on single Cassandra node (Windows Server 2008)

    • Normal

    Description

      After a minor compaction, deleted key-slices are visible again.

      Steps to reproduce:

      1) Insert a row named "test".
      2) Insert 500000 rows. During this step, row "test" is included in a major compaction:
      file-1, file-2, file-3 and file-4 compacted to file-5 (includes "test").
      3) Delete row named "test".
      4) Insert 500000 rows. During this step, row "test" is included in a minor compaction:
      file-6, file-7, file-8 and file-9 compacted to file-10 (should include tombstoned "test").
      After step 4, row "test" is live again.

      Test environment:

      Single node with empty database.

      Standard configured super-column-family (I see this behavior with several gc_grace settings (big and small values):
      create column family Customers with column_type = 'Super' and comparator = 'BytesType;

      In Cassandra 0.7.6 I observe the expected behavior, i.e. after step 4, the row is still deleted.

      I've included a .NET program to reproduce the problem. I will add a Java version later on.

      Attachments

        1. CassandraIssueJava.zip
          453 kB
          rene kochen
        2. CassandraIssue.zip
          693 kB
          rene kochen
        3. 2786_part3-v2.txt
          8 kB
          Jonathan Ellis
        4. 2786_part3.patch
          6 kB
          Sylvain Lebresne
        5. 2786_part2.patch
          11 kB
          Sylvain Lebresne
        6. 0001-Fix-wrong-purge-of-deleted-cf.patch
          5 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            kochen rene kochen
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: