Skip to content

fix(ext-plugin): don't use stale key#5782

Merged
spacewander merged 4 commits into
apache:masterfrom
S96EA:master
Dec 14, 2021
Merged

fix(ext-plugin): don't use stale key#5782
spacewander merged 4 commits into
apache:masterfrom
S96EA:master

Conversation

@S96EA

@S96EA S96EA commented Dec 13, 2021

Copy link
Copy Markdown
Contributor

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

Comment thread apisix/plugins/ext-plugin/init.lua Outdated

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

Copy link
Copy Markdown
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!

@spacewander spacewander left a comment

Copy link
Copy Markdown
Member

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

S96EA commented Dec 13, 2021

Copy link
Copy Markdown
Contributor Author

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