-
Notifications
You must be signed in to change notification settings - Fork 345
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
request help: pkg/apisix/upstream.go List Returns when an error is encountered #814
Comments
yes. If it doesn't return directly here, the user may not find this error. |
And it looks like the problem with the old type format of apisix. |
A node problem causes other nodes to be unavailable. Whether this logic makes sense ? Looking for an error of one node can provide other reasonable ways ? |
@tao12345666333 Can't the error just be logged and the return skipped? What is the issue with that approach? |
Making this modification is not difficult. |
Just removing the return statement and only logging the errors. So, even if one node fails, it will log the error but the loop will continue for other nodes. |
I think the issue is related to #712, they have similar points: |
@gxthrj For #712 I don't think we need to provide compatibility with dashboard upstream resources. The project directly manipulates etcd, and in the new roadmap of APISIX I see that this function will be weakened. Compatible with it probably doesn't make sense. I have seen some issues recently. Most of the scenarios are to use ApisixUpstream resources to perceive changes in Kubernetes services/endpoints, and then use it with Dashboard to create routes. |
Yes, That is true. |
If that, we can not resolve this issue and #712. What is the plan about this issue? |
As I said above, there will not be full support for the scenarios mentioned by #712. But we can consider using APISIX Ingress to define ApisixUpstream, and route resources are maintained by others. |
OK, I see, so the |
Yes. I've seen a lot of feedback on that issue. |
Issue description
The following logic, if I run into an error, causes all nodes after this node to be skipped
Is this by design
apisix-ingress-controller/pkg/apisix/upstream.go
Line 127 in 819b003
Environment
The text was updated successfully, but these errors were encountered: