You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/04 10:58:19 UTC

[GitHub] [apisix] zhangxiaohui123456 opened a new issue #3520: request help:

zhangxiaohui123456 opened a new issue #3520:
URL: https://github.com/apache/apisix/issues/3520


   ### Issue description
   When upstream selects type chash hash_on as cookie  . This is what happened : 
   When a request to an upstream node returns a 404, it keeps sending requests to that upstream node without making a request to another node
   ### Environment
   
   * apisix version (cmd: `apisix version`):2.1
   * OS (cmd: `uname -a`):
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Firstsawyou commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773233867


   Please note that your request is 404 and did not reach the upstream node. If the upstream node is unavailable, it should return a status code of `5xx`. You need to make the request hit the unavailable upstream node of a valid route before you can select other available nodes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zhangxiaohui123456 commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773264473


   > This was a bug in chash and already has been fixed. See my previous reply.
   
   I see  the  Fixed by #2676 ,but My apisix version is 1.x ,Is there a way to fix it?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #3520:
URL: https://github.com/apache/apisix/issues/3520


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773279382


   You can wait for the 2.3 release, or patch APISIX by yourself.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zhangxiaohui123456 commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773237931






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Firstsawyou commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773233867


   Please note that your request is 404 and did not reach the upstream node. If the upstream node is unavailable, it should return a status code of `5xx`. You need to make the request hit the unavailable upstream node of a valid route before you can select other available nodes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773251084


   This was a bug in chash and already has been fixed. See my previous reply.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773225925


   Fixed by https://github.com/apache/apisix/pull/2676


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #3520:
URL: https://github.com/apache/apisix/issues/3520


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zhangxiaohui123456 commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773252685


   > 这是chash中的错误,并且已得到修复。请参阅我以前的回复。
   
   thanks 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773225925






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zhangxiaohui123456 commented on issue #3520: request help:

Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3520:
URL: https://github.com/apache/apisix/issues/3520#issuecomment-773237931


   > Please note that your request is 404 and did not reach the upstream node. If the upstream node is unavailable, it should return a status code of `5xx`. You need to make the request hit the unavailable upstream node of a valid route before you can select other available nodes.
   
   but if  I choose roundrobin as upstream type , When a request to an upstream node returns a 404,  the request is turn another node .The access.log will be printed   multiple upstream information like this :172.18.193.68:23095, 172.18.193.68:23096, 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org