Skip to content

Fix rabbit_khepri delete-related wrappers#15845

Merged
dumbbell merged 2 commits intomainfrom
fix-rabbit_khepri-delete-wrapper
Apr 1, 2026
Merged

Fix rabbit_khepri delete-related wrappers#15845
dumbbell merged 2 commits intomainfrom
fix-rabbit_khepri-delete-wrapper

Conversation

@dumbbell
Copy link
Copy Markdown
Collaborator

Why

The rabbit_khepri:delete() and rabbit_khepri:adv_delete() wrapper were calling khepri:delete_many() and khepri_adv:delete_many() respectively, not khepri{,_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() and rabbit_khepri:adv_delete() wrappers that call the similarily named Khepri APIs.

@dumbbell dumbbell added this to the 4.4.0 milestone Mar 26, 2026
@dumbbell dumbbell self-assigned this Mar 26, 2026
@dumbbell dumbbell force-pushed the fix-rabbit_khepri-delete-wrapper branch from 197fbae to 2c0b101 Compare March 26, 2026 13:50
[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.
@dumbbell dumbbell force-pushed the fix-rabbit_khepri-delete-wrapper branch from 2c0b101 to f016c3e Compare April 1, 2026 06:03
[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.
@dumbbell dumbbell force-pushed the fix-rabbit_khepri-delete-wrapper branch from f016c3e to 560b45b Compare April 1, 2026 06:19
@dumbbell dumbbell marked this pull request as ready for review April 1, 2026 06:48
@dumbbell dumbbell merged commit ab13b83 into main Apr 1, 2026
185 checks passed
@dumbbell dumbbell deleted the fix-rabbit_khepri-delete-wrapper branch April 1, 2026 06:48
dumbbell added a commit that referenced this pull request Apr 1, 2026
Fix `rabbit_khepri` delete-related wrappers (backport #15845)
dumbbell added a commit that referenced this pull request Apr 1, 2026
Fix `rabbit_khepri` delete-related wrappers (backport #15845) (backport #15907)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant