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

bug: the upstream used in the plugin traffic-split can be deleted #5339

Closed
highfly22 opened this issue Oct 27, 2021 · 1 comment · Fixed by #9044
Closed

bug: the upstream used in the plugin traffic-split can be deleted #5339

highfly22 opened this issue Oct 27, 2021 · 1 comment · Fixed by #9044
Labels
bug Something isn't working

Comments

@highfly22
Copy link

Issue description

When deleting a upstream, the admin service doesn't check whether it is used in the traffic-split plugin.

Environment

  • apisix version docker image apache/apisix:2.10.0-alpine
  • OS (cmd: uname -a): Linux algorithm-gateway-prod-apisix-57dcf5569f-v9gdj 3.10.0-1160.15.2.el7.x86_64 change: added doc of how to load plugin. #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 Linux

Steps to reproduce

  1. create traffic-split route and assign a upstream to the route
  2. Delete the upstream

Actual result

The upstream had been removed.

Error log

Code 200

Expected result

Then admin service would reject the delete operation.

@tokers
Copy link
Contributor

tokers commented Oct 27, 2021

Would you like to submit a PR to fix this bug? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants