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

bugfix: deleted the object by Admin API, and the cache was not properly cleaned up during etcd data synchronization. #2168

Merged
merged 2 commits into from
Sep 17, 2020

Conversation

membphis
Copy link
Member

@membphis membphis commented Sep 4, 2020

What this PR does / why we need it:

If the administrator user creates and deletes the same route multiple times, the new route will not be correctly synchronized to the APISIX gateway node, resulting in some request route matching failures and a 404 response.

bugfix: clear all cached data when get delete action, and removing stale boolean data in table self.values with a safer way

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?

apisix/core/config_etcd.lua Outdated Show resolved Hide resolved
apisix/core/config_etcd.lua Outdated Show resolved Hide resolved
t/node/route-delete.t Show resolved Hide resolved
apisix/core/config_etcd.lua Outdated Show resolved Hide resolved
@moonming moonming added this to the 2.0 milestone Sep 16, 2020
@moonming moonming merged commit 68b1f9c into apache:master Sep 17, 2020
@membphis membphis changed the title bugfix: clear all cached object when got delete action, and removing stale boolean data in table self.values with a safer way bugfix: deleted the object by Admin API, and the cache was not properly cleaned up during etcd data synchronization. Oct 19, 2020
nic-chen pushed a commit to api7/apisix that referenced this pull request Dec 14, 2020
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