Skip to content

fix: ensure the plugin is always reloaded#4319

Merged
dabue merged 5 commits into
apache:masterfrom
spacewander:rrai
May 31, 2021
Merged

fix: ensure the plugin is always reloaded#4319
dabue merged 5 commits into
apache:masterfrom
spacewander:rrai

Conversation

@spacewander

Copy link
Copy Markdown
Member

Only trigger a reset from admin when the etcd's data is different
from the one of admin. So there is no need to add check in node side.

Fix #4314

Signed-off-by: spacewander [email protected]

What this PR does / why we need it:

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

Only trigger a reset from admin when the etcd's data is different
from the one of admin. So there is no need to add check in node side.

Fix apache#4314

Signed-off-by: spacewander <[email protected]>
@spacewander
spacewander marked this pull request as ready for review May 27, 2021 06:30
Signed-off-by: spacewander <[email protected]>
Signed-off-by: spacewander <[email protected]>
Signed-off-by: spacewander <[email protected]>
Comment thread apisix/admin/init.lua

@Firstsawyou Firstsawyou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@dabue dabue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, the logic of the new approach is clearer.

@dabue
dabue merged commit 3c857a8 into apache:master May 31, 2021
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.

bug: plugin hot reloading does not take effect

4 participants