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

Reply via email to