You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Semb Wever (Jira)" <ji...@apache.org> on 2024/06/18 09:22:00 UTC

[jira] [Updated] (CASSANDRA-13570) allow sub-range repairs (specifying -et -st) for a preview of repaired data

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

Michael Semb Wever updated CASSANDRA-13570:
-------------------------------------------
            Component/s: Consistency/Repair
    Source Control Link: https://github.com/apache/cassandra/commit/3e8f3c5ed06242a6aedf76c216b1c48c105f84e6

> allow sub-range repairs (specifying -et -st) for a preview of repaired data
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-13570
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13570
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Consistency/Repair
>            Reporter: Matt Byrd
>            Assignee: Matt Byrd
>            Priority: Low
>             Fix For: 4.0-alpha1, 4.0
>
>
> I don't see any inherent reason for restricting preview repairs of repaired data to not allow specifying start and end tokens. 
> The restriction seems to be coming from the fact that incremental=true in RepairOption, which is the case but it's not truly an incremental repair since we're only previewing.
> {code:java}
>         if (option.isIncremental() && !option.isGlobal())
>         {
>             throw new IllegalArgumentException("Incremental repairs cannot be run against a subset of tokens or ranges");
>         }
> {code}
> It would be helpful to allow this, so that operators could sequence a sweep over the entirety of the token-space in a more gradual fashion.
> Also it might help in examining which portions of the token-space differ.
> Can anyone see any reasons for not allowing this?
> I.e just changing the above to something like:
> {code:java}
>  if (option.isIncremental() && !option.getPreviewKind().isPreview() && !option.isGlobal())
>           {
>               throw new IllegalArgumentException("Incremental repairs cannot be run against a subset of tokens or ranges");
>           }
> {code}



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

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