[ 
https://issues.apache.org/jira/browse/CASSANDRA-18044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Miklosovic updated CASSANDRA-18044:
------------------------------------------
    Test and Documentation Plan: junit
                         Status: Patch Available  (was: In Progress)

PR: https://github.com/apache/cassandra/pull/2020/files

j11 pre-commit 
[https://app.circleci.com/pipelines/github/instaclustr/cassandra/1586/workflows/42357f06-1d44-4cea-8bff-bff151821b05]

j8 pre-commit 
[https://app.circleci.com/pipelines/github/instaclustr/cassandra/1586/workflows/f4c1eaed-08f6-4957-9c63-753d6db149da]

affected tests 500x 
[https://app.circleci.com/pipelines/github/instaclustr/cassandra/1586/workflows/f4c1eaed-08f6-4957-9c63-753d6db149da/jobs/7394]

> Make CommitLogReplayer replay all tables in a keyspace when only keyspace is 
> specified in cassandra.replayList property
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18044
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18044
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Local/Commit Log
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.x
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> CommitLogReplayer reacts on a property "cassandra.replayList" (1) which 
> replays only some tables if needed upon commit log replay.
> However, imagine you have a keyspace of 50 tables and other keyspace of 20 
> tables and you want to replay only all tables of the first keyspace.
> Currently, an operator has to enumerate all 50 tables which is not desirable 
> and it is error prone.
> I suggest to change the logic in such a way that if there is only keyspace 
> listed, we would retrieve all its tables dynamically in runtime and replayed 
> only these.
> The solution would be receptive to both keyspace.table as well as only 
> "keyspace" format.
> Valid examples of such property:
> ks1,ks2,ks3.tb1 // it will retrieve all tables of ks1 and ks2 and appends 
> ks3.tb1
> ks1.tb1,ks2.tb2
> ks1,ks2,ks3 // it will retrieve tables of all these keyspaces
> [https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java#L379-L387]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to