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

tombstones gc'd before being locally applied

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.19, 2.0.11, 2.1.0
    • Local/Compaction
    • None
    • 2.1.0.rc6

    • Normal

    Description

      1. single node environment
        CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }

        ;
        use test;
        create table foo (a int, b int, primary key(a,b));
        alter table foo with gc_grace_seconds = 0;
        insert into foo (a,b) values (1,2);
        select * from foo;

        • one row returned. so far, so good.
          delete from foo where a=1 and b=2;
          select * from foo;
        • 0 rows. still rainbows and kittens.
          bin/nodetool flush;
          bin/nodetool compact;
          select * from foo;
          a | b
          --+--
          1 | 2

      (1 rows)

      gahhh.

      looks like the tombstones were considered obsolete and thrown away before being applied to the compaction? gc_grace just means the interval after which they won't be available to remote nodes repair - they should still apply locally regardless (and do correctly in 2.0.9)

      Attachments

        1. 0001-7810-test-for-2.0.x.patch
          4 kB
          Yuki Morishita
        2. 0001-track-gcable-tombstones.patch
          5 kB
          Marcus Eriksson
        3. 0001-track-gcable-tombstones-v2.patch
          7 kB
          Marcus Eriksson
        4. 0002-track-gcable-tombstones-for-2.0.patch
          2 kB
          Yuki Morishita
        5. range_tombstone_test.py
          0.8 kB
          Marcus Eriksson

        Issue Links

          Activity

            People

              marcuse Marcus Eriksson
              jhalliday Jonathan Halliday
              Marcus Eriksson
              Sylvain Lebresne
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: