[ 
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:58 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).


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).

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.

> 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)

Reply via email to