Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Expose some controller state fields for Tictac AAE and NextGenRepl CLI commands #4

Open
wants to merge 7 commits into
base: openriak-3.4
Choose a base branch
from

Conversation

hmmr
Copy link

@hmmr hmmr commented Dec 19, 2024

This PR adds getters for some controller state records, needed for TicTac AAE and NextGenRepl CLI commands (main body of work is in this PR in riak_kv).

Also, we add a new function, aae_schedulenextrebuild/2, which can be used to trigger a tree rebuild, at a specified delay.

@hmmr hmmr force-pushed the tiot/openriak-3.4/tictacaae-and-nextgenrepl-cli-commands branch from 39ef95d to e3d7ee7 Compare December 19, 2024 15:31
@hmmr hmmr changed the title Expose some controller state fields for Tictac AAE and NextGenRepl CLI commands WIP Expose some controller state fields for Tictac AAE and NextGenRepl CLI commands Jan 1, 2025
]).

-export([foldobjects_buildtrees/2,
hash_clocks/2,
wrapped_splitobjfun/1]).

-export([get_key_store/1,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are not supposed to make the state of a gen_server visible outside the gen_server itself, one should not export functions that take that state as input argument.
This is possibly a remainder of an experiment, but I propose to drop those functions and in particular not exporting them.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's wip at the moment. I should probably have taken it private until it's ready.

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