-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: upstream.lua:57: set_upstream(): upstream node has been specified, cannot be set repeatedly #3164
Comments
I have created two routes, and each route has its own back-end handler. However, I find that once the back-end handler of a route requests another route as an "httpclient", this problem begins to occur |
Is there runnable steps to reproduce this issue? |
I have created two routes, and each route has its own back-end handler. However, I find that once the back-end handler of a route requests another route as an "httpclient", this problem begins to occur |
It seems that you have modified the APISIX? Currently APISIX only support using a remote address as the backend(upstream). |
There was no change httpclient(chrome) -> routerA -> 127.0.0.1:9001 ->routerB->error |
Interesting. What is your route configuration? |
Is it the same as #3079? |
It's not the same problem |
可以加我qq我给您提供复现环境 1210336990 |
Yes, it's about the openresty version. I went back to 1.17 and it's normal |
I also got the warning "upstream node has been specified, cannot be set repeatedly" and several 404 response as well(the qps is about 800) . I added some logs in set_by_route and udp-logger and found that apisix forward the request to wrong backend upstream node. I susspect that the api_ctx is polluted but I have no idea why this happen. PS:we do not use the plugin "traffic-split" Environment |
Issue description
Occasionally, an error "upstream node has been specified, can't be set repeatedly" is reported when a configured route is requested
Environment
apisix version
):2.1uname -a
) linux 3.10.0-1127.8.2.el7.x86_64 centos 7nginx -V
oropenresty -V
) nginx version: openresty/1.19.3.1The text was updated successfully, but these errors were encountered: