You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by julien Campan <ju...@gmail.com> on 2013/03/11 11:42:48 UTC

Repair -pr with vnodes incompatibilty ?

Hi,

I have a cluster on 1.2.2 .

This cluster is composed of 16 nodes in two datacenters (8 and 8) with an
RF 3 :3.

 I used virtual nodes, 256 on each node.

When I do “repair –pr" on a node, I can see that  it’s doing repair only on
the first vnode :

[2013-03-07 14:42:56,922] Starting repair command #7, repairing 1 ranges
for keyspace pns_fr

[2013-03-07 14:42:57,835] Repair session
eb38dfa0-872c-11e2-af2d-f36fae36bab1 for range
(-9064588501660224828,-9063047458265491057] finished

[2013-03-07 14:42:57,835] Repair command #7 finished

[2013-03-07 14:42:57,852] Starting repair command #8, repairing 1 ranges
for keyspace hbxtest

[2013-03-07 14:42:59,307] Repair session
ebc6c7c0-872c-11e2-af2d-f36fae36bab1 for range
(-9064588501660224828,-9063047458265491057] finished

So if  I understand well, when I do a "repair –pr"  on each node, I will
repair only the first vnode on each node. (16 token ranges on 4096 ranges).
This method doesn’t guarantee the consistency of the dataset.

It seems to me that the "repair –pr" is not compatible with vnode cluster.
 is it true ?

If not, can someone explain me how to use it ?



Thanks.





 <http://www.orange.com/>

Re: Repair -pr with vnodes incompatibilty ?

Posted by julien Campan <ju...@gmail.com>.
Ok, thank for the answer.



I have created a bug report : number  5329.


2013/3/11 Sylvain Lebresne <sy...@datastax.com>

>
> It seems to me that the "repair –pr" is not compatible with vnode cluster.
>>  is it true ?
>>
>
> I'm afraid that's probably true. "repair --pr" should repair every
> "primary range" for all of it's token, but it seems this hasn't been
> updated for vnodes.
>
> Would you mind creating a bug report on JIRA?
>
> In the meantime, I don't think there is other choices than using repair
> without --pr for vnodes.
>
> --
> Sylvain
>
>

Re: Repair -pr with vnodes incompatibilty ?

Posted by Sylvain Lebresne <sy...@datastax.com>.
> It seems to me that the "repair –pr" is not compatible with vnode cluster.
>  is it true ?
>

I'm afraid that's probably true. "repair --pr" should repair every "primary
range" for all of it's token, but it seems this hasn't been updated for
vnodes.

Would you mind creating a bug report on JIRA?

In the meantime, I don't think there is other choices than using repair
without --pr for vnodes.

--
Sylvain