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

Truncate doesn't clear row cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0 beta 3
    • None
    • None
    • Low

    Description

      Truncate doesn't clear the row cache. select * from <table> which skips the row cache returns no data, but selecting by key does.

      cqlsh:temp> select v1..v3 from temp2 where k in (3,2,1);
      v1 | v2 | v3
      --------
      16 | 17 | 18
      12 | 13 | 14
      8 | 9 | 10

      cqlsh:temp> truncate temp2;
      cqlsh:temp> select v1..v3 from temp2 where k in (3,2,1);
      v1 | v2 | v3
      --------
      16 | 17 | 18
      12 | 13 | 14
      8 | 9 | 10

      cqlsh:temp> select * from temp2;
      cqlsh:temp> select v1..v3 from temp2 where k in (3,2,1);
      v1 | v2 | v3
      --------
      16 | 17 | 18
      12 | 13 | 14
      8 | 9 | 10

      Attachments

        1. 4940.txt
          2 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            jjordan Jeremiah Jordan
            Jonathan Ellis
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: