CASSANDRA-7450 is for version 2.1.1 and higher. So it is not available in 2.0.x.

On Mon, May 18, 2015 at 1:43 PM, Anuj Wadehra <anujw_2...@yahoo.co.in> wrote:
> Hi,
> This is regarding execution of repair -pr in local DC.
> CASSANDRA-7313 disabled using pr with local option. Later, CASSANDRA-7450 
> allowed it. But when I look at the code of Cassandra 2.0.13, I see that using 
> pr with local is still illegal:
> How to do Repair with pr and local DC option in 2.0.13/2.0.14 ? We dont want 
> to run full repair on each node of  a DC. Moreover, we dont want to incur 
> cross DC repair.
>
> public void forceKeyspaceRepairPrimaryRange(final String keyspaceName, 
> boolean isSequential, boolean isLocal, final String... columnFamilies) throws 
> IOException
>     {
>         // primary range repair can only be performed for whole cluster.
>         // NOTE: we should omit the param but keep API as is for now.
>         if (isLocal)
>         {
>             throw new IllegalArgumentException("You need to run primary range 
> repair on all nodes in the cluster.");
>         }
>
>         forceKeyspaceRepairRange(keyspaceName, 
> getLocalPrimaryRanges(keyspaceName), isSequential ? 
> RepairParallelism.SEQUENTIAL : RepairParallelism.PARALLEL, false, 
> columnFamilies);
>     }
>
>
> ThanksAnuj



-- 
Yuki Morishita
 t:yukim (http://twitter.com/yukim)

Reply via email to