TarsCloud / TarsGateway

BSD 3-Clause "New" or "Revised" License
53 stars 24 forks source link

gateway服务偶尔返回504 Gateway Timeout #15

Closed kikoroc closed 3 years ago

kikoroc commented 4 years ago

gateway服务偶尔返回504 Gateway Timeout的情况:

gateway发起请求的日志: 2020-11-20 13:03:14|0|172.16.0.72||servantui|api|0|0|servant.UIServer.UIObj|68|

被调服务接收到请求的日志: 2020-11-20 13:03:14.794 [ServantThreadPool-exec-servant.UIServer.UIObjAdapter-5] INFO com.servant.aop.ServantAop - request.method[api], param[{"rankType":9,"offset":0,"size":20}]

被调服务处理完成响应日志: 2020-11-20 13:03:14.934 [ServantThreadPool-exec-servant.UIServer.UIObjAdapter-5] INFO com.servant.aop.ServantAop - response.method[api], retCode[0], data[{"data":[//...], cost[140 ms]

gateway响应超时的日志: 2020-11-20 13:03:19|172.16.0.72|servantui|api|||0|0|5077|-7 这个应该是异步调用超过async-invoke-timeout(默认5000ms)没收到响应的情况。

从日志上看,下层服务有正常且及时的处理请求,但是gateway似乎是没收到下层服务的响应回包?或者是callback有什么bug?