Skip to content

fix(dao): plugin priority collision handling #8957

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 1 commit into from
Jun 15, 2022
Merged

Conversation

jschmid1
Copy link
Contributor

@jschmid1 jschmid1 commented Jun 15, 2022

Summary

When plugin priorities collide we cannot guarantee a deterministic result from the sorting function. There are a couple of plugins that traditionally have colliding priorities like their EE counterparts. To ensure determinism this commit adds a collision detection that falls back to a plugin name based sorting. Also the function moved to the kong.tools.utils module to test it in
isolation.

Signed-off-by: Joshua Schmid [email protected]

note that this is a backwards port from ee

When plugin priorities collide we cannot guarantee a deterministic
result from the sorting function. There are a couple of plugins
that traditionally have colliding priorities like their EE counterparts.
To ensure determinism this commit adds a collision detection that falls
back to a plugin name based sorting.
Also the function moved to the `kong.tools.utils` module to test it in
isolation.

Signed-off-by: Joshua Schmid <[email protected]>
@jschmid1 jschmid1 requested a review from a team as a code owner June 15, 2022 08:10
@jschmid1 jschmid1 added this to the 3.0 milestone Jun 15, 2022
@jschmid1 jschmid1 merged commit e3c3be6 into master Jun 15, 2022
@bungle bungle deleted the handler-prio-sorting branch June 15, 2022 09:53
jschmid1 added a commit that referenced this pull request Aug 11, 2022
Signed-off-by: Joshua Schmid <[email protected]>
jschmid1 added a commit that referenced this pull request Aug 12, 2022
Signed-off-by: Joshua Schmid <[email protected]>
oowl pushed a commit that referenced this pull request Aug 15, 2024
(cherry picked from commit 651a4c6)

Co-authored-by: lena-larionova <[email protected]>
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.

2 participants