You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by rash aroskar <ra...@gmail.com> on 2013/08/15 20:13:14 UTC

cassandra snapshot 1.2.5 , stores ttl?

Hi,
If I add some data in cassandra cluster with TTL lets say 2 days, took
snapshot of it before it expires. If I use the snapshot to load the data in
different/same cluster, will the data from the snapshot will carry the TTL
of 2 days (from the time when the snapshot was created)? if not can I
specify TTL when getting data from the snapshot?
If I use Priam will it make this process any easier?

Thanks.
-Rashmi

Re: cassandra snapshot 1.2.5 , stores ttl?

Posted by rash aroskar <ra...@gmail.com>.
got it. Thanks for response.



On Thu, Aug 15, 2013 at 4:26 PM, Tyler Hobbs <ty...@datastax.com> wrote:

> Snapshots just hardlink the existing SSTable files.  They don't "freeze"
> the TTL or anything like that, so data can expire while snapshotted and it
> will be converted to a tombstone when it's first compacted after you reload
> it.  There's not an easy way to prevent this from happening.
>
>
> On Thu, Aug 15, 2013 at 1:13 PM, rash aroskar <ra...@gmail.com>wrote:
>
>> Hi,
>> If I add some data in cassandra cluster with TTL lets say 2 days, took
>> snapshot of it before it expires. If I use the snapshot to load the data in
>> different/same cluster, will the data from the snapshot will carry the TTL
>> of 2 days (from the time when the snapshot was created)? if not can I
>> specify TTL when getting data from the snapshot?
>> If I use Priam will it make this process any easier?
>>
>> Thanks.
>> -Rashmi
>>
>
>
>
> --
> Tyler Hobbs
> DataStax <http://datastax.com/>
>

Re: cassandra snapshot 1.2.5 , stores ttl?

Posted by Tyler Hobbs <ty...@datastax.com>.
Snapshots just hardlink the existing SSTable files.  They don't "freeze"
the TTL or anything like that, so data can expire while snapshotted and it
will be converted to a tombstone when it's first compacted after you reload
it.  There's not an easy way to prevent this from happening.


On Thu, Aug 15, 2013 at 1:13 PM, rash aroskar <ra...@gmail.com>wrote:

> Hi,
> If I add some data in cassandra cluster with TTL lets say 2 days, took
> snapshot of it before it expires. If I use the snapshot to load the data in
> different/same cluster, will the data from the snapshot will carry the TTL
> of 2 days (from the time when the snapshot was created)? if not can I
> specify TTL when getting data from the snapshot?
> If I use Priam will it make this process any easier?
>
> Thanks.
> -Rashmi
>



-- 
Tyler Hobbs
DataStax <http://datastax.com/>