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

Deleted columns are resurrected after a flush

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Urgent
    • Resolution: Fixed
    • 0.7.0 rc 3
    • None
    • None
    • Critical

    Description

      Easily reproduced with the cli:

      [default@unknown] create keyspace testks;
      2785d67c-02df-11e0-ac09-e700f669bcfc
      [default@unknown] use testks;
      Authenticated to keyspace: testks
      [default@testks] create column family testcf;
      2fbad20d-02df-11e0-ac09-e700f669bcfc
      [default@testks] set testcf['test']['foo'] = 'foo';
      Value inserted.
      [default@testks] set testcf['test']['bar'] = 'bar';
      Value inserted.
      [default@testks] list testcf;
      Using default limit of 100
      -------------------
      RowKey: test
      => (column=626172, value=626172, timestamp=1291821869120000)
      => (column=666f6f, value=666f6f, timestamp=1291821857320000)
      
      1 Row Returned.
      [default@testks] del testcf['test'];
      row removed.
      [default@testks] list testcf;
      Using default limit of 100
      -------------------
      RowKey: test
      
      1 Row Returned.
      

      Now flush testks and look again:

      [default@testks] list testcf;
      Using default limit of 100
      -------------------
      RowKey: test
      => (column=626172, value=626172, timestamp=1291821869120000)
      => (column=666f6f, value=666f6f, timestamp=1291821857320000)
      
      1 Row Returned.
      

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--v1-0001-unit-tests-that-show-bug.txt
          10 kB
          Gary Dusbabek
        2. ASF.LICENSE.NOT.GRANTED--v1-0002-copy-deletion-time-to-reduced-column-families.txt
          3 kB
          Gary Dusbabek
        3. 1837-0.6-unit-test.diff
          9 kB
          Gary Dusbabek
        4. v2-0002.txt
          4 kB
          Jonathan Ellis

        Activity

          People

            gdusbabek Gary Dusbabek
            brandon.williams Brandon Williams
            Gary Dusbabek
            Jonathan Ellis
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: