Discussion:
Partitions repair isn't working anymore?
Guido Medina
2018-06-01 08:07:13 UTC
Permalink
Hi all,

We started the partitions repair a couple of weeks ago, so far so good
Partitions].
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
riak_core_ring:all_owners(Ring)].
We are running on 2.2.5
Guido.
Russell Brown
2018-06-01 08:16:02 UTC
Permalink
riak_search has been removed from riak-2.2.5. Looks like some vestige survived.

Can you tell me what command you ran, it looks to me from the output below that you’re connected to node and typing commands in the console?

Is this some snippet that you attach and run?

Cheers

Russell
Post by Guido Medina
Hi all,
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
We are running on 2.2.5
Guido.
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Nicholas Adams
2018-06-01 08:32:06 UTC
Permalink
From the mail history, I'd guess he's following the standard repair process listed on https://docs.basho.com/riak/kv/2.1.4/using/repair-recovery/repairs/#repairing-all-partitions-on-a-node


-----Original Message-----
From: riak-users <riak-users-***@lists.basho.com> On Behalf Of Russell Brown
Sent: 01 June 2018 17:16
To: Guido Medina <***@temetra.com>
Cc: riak-users <riak-***@lists.basho.com>
Subject: Re: Partitions repair isn't working anymore?

riak_search has been removed from riak-2.2.5. Looks like some vestige survived.

Can you tell me what command you ran, it looks to me from the output below that you’re connected to node and typing commands in the console?

Is this some snippet that you attach and run?

Cheers

Russell
Post by Guido Medina
Hi all,
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
We are running on 2.2.5
Guido.
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
riak-***@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Guido Medina
2018-06-01 08:34:22 UTC
Permalink
Hi Russell,

I was repairing each node as specified in this guide
https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-a-single-partition

Guido.
Post by Russell Brown
riak_search has been removed from riak-2.2.5. Looks like some vestige survived.
Can you tell me what command you ran, it looks to me from the output below that you’re connected to node and typing commands in the console?
Is this some snippet that you attach and run?
Cheers
Russell
Post by Guido Medina
Hi all,
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
We are running on 2.2.5
Guido.
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Guido Medina
2018-06-01 08:35:21 UTC
Permalink
Sorry, not repairing a single partition but all partitions per node:
https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-all-partitions-on-a-node
Post by Guido Medina
Hi Russell,
I was repairing each node as specified in this guide
https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-a-single-partition
Guido.
Post by Russell Brown
riak_search has been removed from riak-2.2.5. Looks like some vestige survived.
Can you tell me what command you ran, it looks to me from the output below that you’re connected to node and typing commands in the console?
Is this some snippet that you attach and run?
Cheers
Russell
Post by Guido Medina
Hi all,
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
We are running on 2.2.5
Guido.
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Russell Brown
2018-06-01 08:37:10 UTC
Permalink
I don’t see a call to `riak_search_vnode:repair` in those docs

Do you still run legacy riak search (i.e. not yokozuna/solr)?
Post by Guido Medina
https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-all-partitions-on-a-node
Post by Guido Medina
Hi Russell,
I was repairing each node as specified in this guide https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-a-single-partition
Guido.
Post by Russell Brown
riak_search has been removed from riak-2.2.5. Looks like some vestige survived.
Can you tell me what command you ran, it looks to me from the output below that you’re connected to node and typing commands in the console?
Is this some snippet that you attach and run?
Cheers
Russell
Post by Guido Medina
Hi all,
)3> [riak_search_vnode:repair(P) || P <- Partitions].
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
Partitions = [P || {P, '
'} <- riak_core_ring:all_owners(Ring)].
We are running on 2.2.5
Guido.
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Guido Medina
2018-06-01 09:03:59 UTC
Permalink
What did I copied and pasted, sorry about that, it must be that it is
Friday or something...my apologies.
I don’t see a call to `riak_search_vnode:repair` in those docs
Do you still run legacy riak search (i.e. not yokozuna/solr)?
Post by Guido Medina
https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-all-partitions-on-a-node
Post by Guido Medina
Hi Russell,
I was repairing each node as specified in this guide https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-a-single-partition
Guido.
Post by Russell Brown
riak_search has been removed from riak-2.2.5. Looks like some vestige survived.
Can you tell me what command you ran, it looks to me from the output below that you’re connected to node and typing commands in the console?
Is this some snippet that you attach and run?
Cheers
Russell
Post by Guido Medina
Hi all,
)3> [riak_search_vnode:repair(P) || P <- Partitions].
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
Partitions = [P || {P, '
'} <- riak_core_ring:all_owners(Ring)].
We are running on 2.2.5
Guido.
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Guido Medina
2018-06-01 09:07:32 UTC
Permalink
The last command should have been like the following:

* {ok, Ring} = riak_core_ring_manager:get_my_ring().
* Partitions = [P || {P, '***@node4.domain.com'} <-
riak_core_ring:all_owners(Ring)].
* *[riak_kv_vnode:repair(P) || P <- Partitions].*

My bad, I think I copied the command from the wrong instructions before.

Guido.
I don’t see a call to `riak_search_vnode:repair` in those docs
Do you still run legacy riak search (i.e. not yokozuna/solr)?
Post by Guido Medina
https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-all-partitions-on-a-node
Post by Guido Medina
Hi Russell,
I was repairing each node as specified in this guide https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-a-single-partition
Guido.
Post by Russell Brown
riak_search has been removed from riak-2.2.5. Looks like some vestige survived.
Can you tell me what command you ran, it looks to me from the output below that you’re connected to node and typing commands in the console?
Is this some snippet that you attach and run?
Cheers
Russell
Post by Guido Medina
Hi all,
)3> [riak_search_vnode:repair(P) || P <- Partitions].
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
Partitions = [P || {P, '
'} <- riak_core_ring:all_owners(Ring)].
We are running on 2.2.5
Guido.
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Russell Brown
2018-06-01 09:09:01 UTC
Permalink
• {ok, Ring} = riak_core_ring_manager:get_my_ring().
• [riak_kv_vnode:repair(P) || P <- Partitions].
My bad, I think I copied the command from the wrong instructions before.
And does that work?

From your mail you said that
Post by Russell Brown
Post by Guido Medina
Post by Guido Medina
Post by Russell Brown
Post by Guido Medina
)3> [riak_search_vnode:repair(P) || P <- Partitions].
** exception error: undefined function riak_search_vnode:repair/1
Does not work. This I would expect, and I was asking, why do you run this? Are you using legacy search?

If you run
• [riak_kv_vnode:repair(P) || P <- Partitions].
Does it work?

Cheers

Russell
Guido.
Post by Russell Brown
I don’t see a call to `riak_search_vnode:repair` in those docs
Do you still run legacy riak search (i.e. not yokozuna/solr)?
Post by Guido Medina
https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-all-partitions-on-a-node
Post by Guido Medina
Hi Russell,
I was repairing each node as specified in this guide
https://docs.basho.com/riak/kv/2.2.3/using/repair-recovery/repairs/#repairing-a-single-partition
Guido.
Post by Russell Brown
riak_search has been removed from riak-2.2.5. Looks like some vestige survived.
Can you tell me what command you ran, it looks to me from the output below that you’re connected to node and typing commands in the console?
Is this some snippet that you attach and run?
Cheers
Russell
Post by Guido Medina
Hi all,
)3> [riak_search_vnode:repair(P) || P <- Partitions].
** exception error: undefined function riak_search_vnode:repair/1
{ok, Ring} = riak_core_ring_manager:get_my_ring().
Partitions = [P || {P, '
'} <- riak_core_ring:all_owners(Ring)].
We are running on 2.2.5
Guido.
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Loading...