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

Lost row marker after TTL expires

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Urgent
    • Resolution: Fixed
    • 1.2.7
    • None
    • None
    • Ubuntu 12.04

    • Critical

    Description

      I have the following table

      cqlsh:loginproject> DESCRIBE TABLE gameservers;

      CREATE TABLE gameservers (
      address inet PRIMARY KEY,
      last_update timestamp,
      regions blob,
      server_status boolean
      ) WITH
      bloom_filter_fp_chance=0.010000 AND
      caching='KEYS_ONLY' AND
      comment='' AND
      dclocal_read_repair_chance=0.000000 AND
      gc_grace_seconds=864000 AND
      read_repair_chance=0.100000 AND
      replicate_on_write='true' AND
      populate_io_cache_on_flush='false' AND
      compaction=

      {'class': 'SizeTieredCompactionStrategy'}

      AND
      compression=

      {'sstable_compression': 'SnappyCompressor'}

      ;

      after inserting a row and executing the following command:
      UPDATE gameservers USING TTL 10 SET server_status = true WHERE address = '192.168.0.100'

      after waiting for the ttl to expire, the row will lose its rowmarker making "select address from gameservers" returning 0 results although there are some.

      in cassandra-cli the table looks like this:
      [default@loginproject] list gameservers;
      Using default limit of 100
      Using default cell limit of 100
      -------------------
      RowKey: 192.168.0.100
      => (name=last_update, value=0000000000000017, timestamp=1373884433543000)
      => (name=regions, value=<truncated>, timestamp=1373883701652000)

      1 Row Returned.
      Elapsed time: 345 msec(s).
      [default@loginproject]

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            slebresne Sylvain Lebresne Assign to me
            tnr Taner Catakli
            Sylvain Lebresne
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment