Skip to content

Fix rabbit_khepri delete-related wrappers (backport #15845) (backport #15907)#15908

Merged
dumbbell merged 2 commits intov4.2.xfrom
mergify/bp/v4.2.x/pr-15907
Apr 1, 2026
Merged

Fix rabbit_khepri delete-related wrappers (backport #15845) (backport #15907)#15908
dumbbell merged 2 commits intov4.2.xfrom
mergify/bp/v4.2.x/pr-15907

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify Bot commented Apr 1, 2026

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.


This is an automatic backport of pull request #15845 done by Mergify.
This is an automatic backport of pull request #15907 done by Mergify.

[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.

(cherry picked from commit 0d3edce)
(cherry picked from commit 77cdf87)
@dumbbell dumbbell marked this pull request as draft April 1, 2026 07:21
[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.

(cherry picked from commit 560b45b)
(cherry picked from commit 174648e)
@dumbbell dumbbell force-pushed the mergify/bp/v4.2.x/pr-15907 branch from 7192eb6 to b12948e Compare April 1, 2026 13:35
@dumbbell dumbbell marked this pull request as ready for review April 1, 2026 14:50
@dumbbell dumbbell merged commit f533e2b into v4.2.x Apr 1, 2026
296 checks passed
@dumbbell dumbbell deleted the mergify/bp/v4.2.x/pr-15907 branch April 1, 2026 14:50
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.

1 participant