You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Lyuben Todorov (JIRA)" <ji...@apache.org> on 2013/10/07 11:55:46 UTC
[jira] [Comment Edited] (CASSANDRA-4809) Allow restoring specific
column families from archived commitlog
[ https://issues.apache.org/jira/browse/CASSANDRA-4809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13788015#comment-13788015 ]
Lyuben Todorov edited comment on CASSANDRA-4809 at 10/7/13 9:54 AM:
--------------------------------------------------------------------
The patch works as intended. To specify a particular ks/cf to be archived we need to add parameters when starting cassandra.
{code}
./cassandra -Dcassandra.readKeyspaceCommitlog=exampleKS -Dcassandra.readColumnFamilyCommitlog=exampleCF
{code}
Maybe it would be a better option to add restore_keyspace and restore_columnfamily config options to commitlog_archiving.properties. If the original setup is preferable I'll rebase the patch (it doesn't apply cleanly because of other changes on the branch).
The last thing I want to change is: The patch assumes that users will want to replay only part of the commitlog, we should still allow them to replay the entire log if the ks/cf parameters aren't supplied.
was (Author: lyubent):
The patch works as intended. To specify a particular ks/cf to be archived we need to add parameters when starting cassandra.
{code}
./cassandra -Dcassandra.readKeyspaceCommitlog=exampleKS -Dcassandra.readColumnFamilyCommitlog=exampleCF
{code}
Maybe it would be a better option to add restore_keyspace and restore_columnfamily config options to commitlog_archiving.properties. If the original setup is preferable I'll rebase the patch (it doesn't apply cleanly because of other changes on the branch).
> Allow restoring specific column families from archived commitlog
> ----------------------------------------------------------------
>
> Key: CASSANDRA-4809
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4809
> Project: Cassandra
> Issue Type: Improvement
> Affects Versions: 1.2.0
> Reporter: Nick Bailey
> Assignee: Lyuben Todorov
> Labels: lhf
> Fix For: 2.0.2
>
> Attachments: 4809.patch
>
>
> Currently you can only restore the entire contents of a commit log archive. It would be useful to specify the keyspaces/column families you want to restore from an archived commitlog.
--
This message was sent by Atlassian JIRA
(v6.1#6144)