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 2019/12/24 02:53:56 UTC
[GitHub] [servicecomb-java-chassis] hongfeihuangseu commented on issue #1485: 超时和503会触发隔离,那么这个503指的是什么呢?
hongfeihuangseu commented on issue #1485: 超时和503会触发隔离,那么这个503指的是什么呢?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1485#issuecomment-568634938
> 503是标准的HTTP状态码,表示[服务暂时不可用](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Status/503)。
> 至于业务自己抛出的异常,默认情况下Java-Chassis是不认识的,会统一转换为590状态码,这个是Java-Chassis自定义的一个HTTP状态码。转换逻辑可以参考代码中的`org.apache.servicecomb.swagger.engine.SwaggerProducerOperation#processException`
是不是可以理解为业务自己抛出4XX异常是不会触发隔离机制的呢
----------------------------------------------------------------
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
With regards,
Apache Git Services