-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(router): always calculate match_t.upstream_uri
to avoid wrong cache
#12307
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm also a bit concerned that after the change, those string manipulations are executed on every request, which may cause additional resource usage and we may need a proper performance test to check the exact influence level. |
Sure, because now we do not cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we fixed the upstream path generation, should 86f0a6c#diff-10bd9d1fe08f4a9367308540176f3e7c6067a831dc22cc182057319d28f5f061R884 be removed? It seems that we should not have added the paths
to work around the issue in the first place.
480865d
to
70c2fa9
Compare
@chronolaw Approved, notice that this should be a |
match_t.upstream_uri
to avoid wrong cachematch_t.upstream_uri
to avoid wrong cache
Successfully created cherry-pick PR for |
Summary
KAG-3505
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix #[issue number]