CLI support for riak_client:repair_node()#156
Conversation
|
I'm not sure about repairing multiple nodes, what happens when partitions are covered in more than one nodes - the behaviour might be unpredictable. Having nodes of I've only done non-functional testing for repairing a single node, so I think it should be restricted to repairing a single node at a time. There are are advanced configurable options like |
|
Would it, then, be appropriate to extend the action of |
|
Repairs can be tracked like other handoffs/transfer operations - so there's not a need for a status, in that there is another way of following this . However, there is a repair_status for each vnode (tracked by the vnode_manager). So just as node_repair is just a wrapper to call repair on all vnodes on the node, there could be a call to repair_status that collates the status across vnodes - but the status is just in_progress/not_found. There are better ways to track progress - so I'm not sure it is necessary, but it could give you a definitive in_progress/complete statement. There may be more complications here. I can't remember the history behind this comment: Perhaps I hadn't thought of using repair_status, or perhaps there was an issue with it. |
f43eade to
4bba66a
Compare
|
I have added subcommands |
Expose
riak_client:repair_node/0asriak admin node repair.Related PRs: OpenRiak/riak#36. Test in OpenRiak/riak_test#29.