You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/11/02 14:20:52 UTC

[GitHub] [servicecomb-java-chassis] yfliuas opened a new issue #2630: 多个handler协同处理

yfliuas opened a new issue #2630:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2630


   项目中包含多个handler+HttpServerFilter,大致:
   A-handler --> B-handler --> C-handler --> D-httpServerFilter --> 业务代码 --> D-httpServerFilter
   我们需要在A-handler失败之后,直接返回形如 413 xxxerror的错误码。
   
   在handler中直接调用如下代码,预期B-handler之后的handler应该不会执行:
   `
   asyncResponse.consumerFail(new InvocationException(413, "forbidden", "request error"));
   `
   调用如下代码,预期走下一个handler:
   `
   invocation.next(asyncResponse);
   `
   
   发现在A-handler调用consumerFail之后,依然走了B-handler的逻辑,请问从Servicecomb预期应该怎么样
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] yfliuas commented on issue #2630: 多个handler协同处理

Posted by GitBox <gi...@apache.org>.
yfliuas commented on issue #2630:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2630#issuecomment-958746132


   确认是servicecomb 2.1.5版本bug


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] yfliuas commented on issue #2630: 多个handler协同处理

Posted by GitBox <gi...@apache.org>.
yfliuas commented on issue #2630:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2630#issuecomment-958746132


   确认是servicecomb 2.1.5版本bug


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] yfliuas commented on issue #2630: 多个handler协同处理

Posted by GitBox <gi...@apache.org>.
yfliuas commented on issue #2630:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2630#issuecomment-958746132


   确认是servicecomb 2.1.5版本bug


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] yfliuas commented on issue #2630: 多个handler协同处理

Posted by GitBox <gi...@apache.org>.
yfliuas commented on issue #2630:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2630#issuecomment-958746132


   确认是servicecomb 2.1.5版本bug


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2630: 多个handler协同处理

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2630:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2630#issuecomment-966898858


   你能提供下修复链接吗?貌似没修复过类似问题。 另外, 你有试过哪个版本修复过这个问题吗?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

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