Hello Boying,

1. "repairedAt" actually means "fullRepair", so set that to true if you
want to run ordinary/full repair or false if you want to run incremental
repair.
2. You should use StorageServiceMBean.repairAsync(String, Map<String,
String>), where the options map will be parsed by
org.apache.cassandra.repair.messages.RepairOption.parse()

I will add a deprecation message and rename the repairedAt field to
fullRepair.

Thanks!

Paulo

2015-11-30 2:13 GMT-08:00 Lu, Boying <[email protected]>:

> Hi, All,
>
>
>
> We plan to upgrade Cassandra from 2.0.17 to the latest release 2.2.3 in
> our product.
>
>
>
> We use:
>
> /**
>
>      * Same as forceRepairAsync, but handles a specified range
>
>      */
>
> public int forceRepairRangeAsync(String beginToken, String endToken, final
> String keyspaceName, boolean isSequential, boolean *isLocal*, final
> String... columnFamilies);
>
> (defined in StorageServiceMBean.java) to trigger a repair in Cassandra
> 2.0.17
>
>
>
> But this interface is marked as “@Deprecated” in 2.2.3 and has following
> prototype:
>
> @Deprecated
>
>     public int forceRepairRangeAsync(String beginToken, String endToken,
> String keyspaceName, boolean isSequential, boolean isLocal, boolean
> *repairedAt*, String... columnFamilies);
>
>
>
> So my questions are:
>
> 1.       If we continue to use this interface, should we set the
> ‘repairedAt’ to true or false?
>
> 2.       If we don’t use this interface, which alternative API should we
> use?
>
>
>
> Thanks
>
>
> Boying
>
>
>
>
>

Reply via email to