Fix rabbit_khepri delete-related wrappers#15845
Merged
Conversation
197fbae to
2c0b101
Compare
[Why] This wrapper was calling `khepri_adv:delete_many()`, not `khepri_adv:delete()` as the name was suggesting. They are not the same function and have not the same behaviour. This led to a performance issue with the branch that replaces the "delete queue" transaction by a simple delete (#14902) that was related to this confusion. [How] The wrapper is renamed to reflect the Khepri API being called. While here, add a `rabbit_khepri:adv_delete()` wrapper that calls the similarily named Khepri API.
2c0b101 to
f016c3e
Compare
[Why] This wrapper was calling `khepri:delete_many()`, not `khepri:delete()` as the name was suggesting. They are not the same function and have not the same behaviour. I did not identified any performance problem, but this is a similar naming issue as the one fixed by the previous commit. [How] The wrapper is renamed to reflect the Khepri API being called. While here, add a `rabbit_khepri:delete()` wrapper that calls the similarily named Khepri API.
f016c3e to
560b45b
Compare
dumbbell
added a commit
that referenced
this pull request
Apr 1, 2026
Fix `rabbit_khepri` delete-related wrappers (backport #15845)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The
rabbit_khepri:delete()andrabbit_khepri:adv_delete()wrapper were callingkhepri:delete_many()andkhepri_adv:delete_many()respectively, notkhepri{,_adv}:delete()as the names were suggesting. They are not the same function and have not the same behaviour.This led to a performance issue with the branch that replaces the "delete queue" transaction by a simple delete (#14902) that was related to this confusion.
How
The wrappers are renamed to reflect the Khepri APIs being called.
While here, add
rabbit_khepri:delete()andrabbit_khepri:adv_delete()wrappers that call the similarily named Khepri APIs.