[
https://issues.apache.org/jira/browse/CASSANDRA-16451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305202#comment-17305202
]
Paulo Motta commented on CASSANDRA-16451:
-----------------------------------------
Hi [~fibersel],
Thanks for your interest in working on this project. Before diving into the
code I suggest to get acquainted with the snapshot feature, here are a few
links to get started:
* [About
snapshots|https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/operations/opsAboutSnapshots.html]
* [Taking a
snapshot|https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/operations/opsBackupTakesSnapshot.html]
* [All about cassandra
snapshots|https://dev.to/ecnepsnai/all-about-apache-cassandra-snapshots-3oo2]
Once you are familiar I suggest you to create a local cassandra cluster with
[CCM|https://github.com/riptano/ccm], try inserting some data and creating
snapshots manually and also test the
[auto_snapshot|https://cassandra.apache.org/doc/latest/configuration/cassandra_config_file.html#auto-snapshot]
feature. This exercise will make it easier to dive into the code when you're
ready. A good starting point is the
[SnapshotCommand|https://github.com/apache/cassandra/blob/79e693e16e2152097c5b27d2d7aaa1763e34f594/src/java/org/apache/cassandra/db/SnapshotCommand.java]
class.
Once you have a good understanding of how snapshot works, then we can
collaboratively discuss how to best implement this feature and you can submit
your GSoC proposal based on that discussion.
If you have any questions don't hesitate to ask here or on the [community slack
channels|https://cassandra.apache.org/community/].
> Add ability to ttl snapshots
> ----------------------------
>
> Key: CASSANDRA-16451
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16451
> Project: Cassandra
> Issue Type: Improvement
> Components: Tool/nodetool
> Reporter: Paulo Motta
> Priority: Normal
> Labels: gsoc2021, mentor
>
> It should be possible to add a TTL to snapshots, after which it automatically
> cleans itself up.
> This will be useful together with the {{auto_snapshot}} option, where you
> want to keep an emergency snapshot in case of accidental drop or truncation
> but automatically remove it after a specified period when it's no longer
> useful. So in addition to allowing a user to specify a snapshot ttl on
> {{nodetool snapshot}} we should have a {{auto_snapshot_ttl}} option that
> allows a user to set a ttl for automatic snaphots on drop/truncate.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]