Skip to content
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(ext-plugin): don't use stale key #5782

Merged
merged 4 commits into from
Dec 14, 2021
Merged

Conversation

S96EA
Copy link
Contributor

@S96EA S96EA commented Dec 13, 2021

What this PR does / why we need it:

ext_plugin an expired key in lrucachd that could not find in go runner。
patch for #5309

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@@ -677,6 +677,7 @@ local function create_lrucache()

lrucache = core.lrucache.new({
type = "plugin",
invalid_stale = true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you do some refactor so we don't need to specify the lrucache options twice? Thanks!

Copy link
Member

@spacewander spacewander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can rename create_lrucache to recreate_lrucache?

@S96EA
Copy link
Contributor Author

S96EA commented Dec 13, 2021

Maybe we can rename create_lrucache to recreate_lrucache?

okey, done

@spacewander spacewander merged commit bb8ff5b into apache:master Dec 14, 2021
bzp2010 pushed a commit to bzp2010/apisix that referenced this pull request Dec 30, 2021
Co-authored-by: sunaowei <sunaowei@neild>
bzp2010 pushed a commit to bzp2010/apisix that referenced this pull request Dec 31, 2021
Co-authored-by: sunaowei <sunaowei@neild>
bzp2010 pushed a commit to bzp2010/apisix that referenced this pull request Dec 31, 2021
Co-authored-by: sunaowei <sunaowei@neild>
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.

3 participants