Skip to content

Mas i1121 passringdir#992

Merged
martinsumner merged 3 commits into
develop-3.0from
mas-i1121-passringdir
Dec 6, 2022
Merged

Mas i1121 passringdir#992
martinsumner merged 3 commits into
develop-3.0from
mas-i1121-passringdir

Conversation

@martinsumner

Copy link
Copy Markdown
Contributor

Break down the functions required for reip, so that it can be called from riak_kv_console without knowledge of the cluster name or of the ring directory. This makes it easier to write a reip admin command to be used when riak_core is not loaded with its standard configuration

The riak_kv_console:reip/1 function currently requires the node to be down but riak_core configuration to be available so that functions that rely on get_env will work.

Want to allow for a riak_kv_console:reip/3 where the Ring directory and ClusterName can be passed in.
Make Cluster a function arg
check_lastgasp/1 is not required when node is down (e.g. when running riak_kv_console:reip_manual/1).
@hmmr

hmmr commented Dec 6, 2022

Copy link
Copy Markdown
Contributor

+1

@martinsumner
martinsumner merged commit 1afd61e into develop-3.0 Dec 6, 2022
@martinsumner
martinsumner deleted the mas-i1121-passringdir branch December 6, 2022 18:18
martinsumner added a commit that referenced this pull request Dec 19, 2022
* Allow use of ring update functions without app

The riak_kv_console:reip/1 function currently requires the node to be down but riak_core configuration to be available so that functions that rely on get_env will work.

Want to allow for a riak_kv_console:reip/3 where the Ring directory and ClusterName can be passed in.

* Update riak_core_ring_manager.erl

Make Cluster a function arg

* Remove lastgasp check if do_write_rigfile/2

check_lastgasp/1 is not required when node is down (e.g. when running riak_kv_console:reip_manual/1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants