cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-9570) Deprecated forceRepairAsync methods in StorageService do not work
Date Tue, 24 Nov 2015 16:20:11 GMT

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

Yuki Morishita updated CASSANDRA-9570:
--------------------------------------
    Component/s: Observability

> Deprecated forceRepairAsync methods in StorageService do not work
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-9570
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9570
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Observability
>            Reporter: Mike Adamson
>            Assignee: Yuki Morishita
>             Fix For: 2.2.0 rc2
>
>
> The deprecated forceRepairAsync methods in StorageService don't work because they are
creating RepairOption as follows:
> {noformat}
>         RepairOption options = new RepairOption(parallelism, primaryRange, !fullRepair,
false, 1, Collections.<Range<Token>>emptyList());
> {noformat}
> This creates a RepairOption with an empty token range. The methods call down to:
> {noformat}
>     public int forceRepairAsync(String keyspace, RepairOption options)
>     {
>         if (options.getRanges().isEmpty() || Keyspace.open(keyspace).getReplicationStrategy().getReplicationFactor()
< 2)
>             return 0;
>         int cmd = nextRepairCommand.incrementAndGet();
>         new Thread(createRepairTask(cmd, keyspace, options)).start();
>         return cmd;
>     }
> {noformat}
> to run the repair and this returns 0 because option ranges are empty.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message