Skip to content

Khepri: Clean up the setup/clustering code of the integration code #13781

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

Merged
merged 2 commits into from
Apr 24, 2025

Conversation

dumbbell
Copy link
Collaborator

@dumbbell dumbbell commented Apr 23, 2025

Why

The rabbit_khepri module grew during the work to add Khepri support to RabbitMQ and while Khepri was itself written. The current code is therefore unorganized.

How

The pull request has two commits:

  1. One to clean up and document the init and clustering code
  2. One to clean up proxy functions and remove dead code

[Why]
The `rabbit_khepri` module grew during the work to add Khepri support to
RabbitMQ and while Khepri was itself written. The current code is
therefore unorganized.

[How]
This commit tries to sort the code that manages the setup of Khepri and
the functions tha deal with the Khepri cluster. It also groups functions
which provide support for CLI commands.

It also adds documentation to several functions.

Finally, when a node joins a cluster, we stop displaying the content of
the Khepri tree.
@dumbbell dumbbell force-pushed the cleanup-rabbit_khepri branch 2 times, most recently from 8ce85c8 to fe17c62 Compare April 24, 2025 11:13
@dumbbell dumbbell force-pushed the cleanup-rabbit_khepri branch 3 times, most recently from 778c0d2 to a9a2060 Compare April 24, 2025 14:02
[Why]
The `rabbit_khepri` module grew during the work to add Khepri support to
RabbitMQ and while Khepri was itself written. The current code is
therefore unorganized.

[How]
This commit tries to change proxy functions to be close to their Khepri
equivalent.

The module continues to set non-default options for write functions. We
also add the variants that take an option map to be consistent and not
have to deal with that in the future.

Several legacy functions were removed, either because they were no
longer called or because they were replace by a regular Khepri call.
@dumbbell dumbbell force-pushed the cleanup-rabbit_khepri branch from a9a2060 to 5300076 Compare April 24, 2025 14:06
@dumbbell dumbbell marked this pull request as ready for review April 24, 2025 16:27
@dumbbell dumbbell merged commit d84d3a1 into main Apr 24, 2025
273 checks passed
@dumbbell dumbbell deleted the cleanup-rabbit_khepri branch April 24, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant