Cassandra
  1. Cassandra
  2. CASSANDRA-3505

Explicitly requested keys will always be present in resultset

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      This bug is regarding the select after the 'truncate'. In 1.0.1 no rows would ever be returned, but now we are seeing a tombstone when querying for user1. Jake mentioned this may be related to CASSANDRA-2855.

      cqlsh> CREATE KEYSPACE ks1 with 
         ...   strategy_class =  
         ...     'org.apache.cassandra.locator.SimpleStrategy' 
         ...   and strategy_options:replication_factor=1;
        
      cqlsh> use ks1;
      
      cqlsh:ks1> 
      
      cqlsh:ks1> CREATE COLUMNFAMILY users (
             ...   KEY varchar PRIMARY KEY, password varchar, gender varchar,
             ...   session_token varchar, state varchar, birth_year bigint);
      
      cqlsh:ks1> INSERT INTO users (KEY, password) VALUES ('user1', 'ch@ngem3a');
      
      cqlsh:ks1> UPDATE users SET gender = 'm', birth_year = '1980' WHERE KEY = 'user1';
      
      cqlsh:ks1> SELECT * FROM users WHERE key='user1';
         KEY | birth_year | gender |  password |
       user1 |       1980 |      m | ch@ngem3a |
      
      cqlsh:ks1> TRUNCATE users;
      
      // Expected, no rows returned
      cqlsh:ks1> SELECT * FROM users WHERE key='user1';
         KEY |
       user1 |
      
      // Expected, no rows returned
      cqlsh:ks1> SELECT * FROM users;
      
      

        Issue Links

          Activity

          Cathy Daw created issue -
          Jonathan Ellis made changes -
          Field Original Value New Value
          Assignee T Jake Luciani [ tjake ] Yuki Morishita [ yukim ]
          Fix Version/s 1.0.4 [ 12319064 ]
          Reviewer jbellis
          Jonathan Ellis made changes -
          Assignee Yuki Morishita [ yukim ] Jonathan Ellis [ jbellis ]
          Jonathan Ellis made changes -
          Fix Version/s 1.0.4 [ 12319064 ]
          Priority Major [ 3 ] Minor [ 4 ]
          Jonathan Ellis made changes -
          Summary tombstone appears after truncate Explicitly requested keys will always be present in resultset
          Eric Evans made changes -
          Link This issue is broken by CASSANDRA-3424 [ CASSANDRA-3424 ]
          Jonathan Ellis made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Gavin made changes -
          Workflow no-reopen-closed, patch-avail [ 12642607 ] patch-available, re-open possible [ 12749196 ]
          Gavin made changes -
          Workflow patch-available, re-open possible [ 12749196 ] reopen-resolved, no closed status, patch-avail, testing [ 12756866 ]

            People

            • Assignee:
              Jonathan Ellis
              Reporter:
              Cathy Daw
              Reviewer:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development