JAVA微服务后端,服务A和服务B,服务A调用服务B的方法时(服务A调用服务C时正常返回),报错如下:
Shutdown hook installed for: NFLoadBalancer-PingTimer-nrms-task-order
Client: nrms-xxxx-order instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=nrms-task-order,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
等待1分钟,报超时
feign.RetryableException: Read timed out executing POST http://nrms-task-order/api/taskController/deletOder
注册中心是eureka嘛?先去eureka上检查看看服务有没有发布?你报的错是:current list of Servers=[] 说明没有服务列表。
原因:事务执行中调用别人的接口,我自己的事务中再执行A表,因此将A表锁定了,别人的接口也需要更新A表的数据,所以无法更新导致无值返回,报连接超时;等超时之后,我自己的事务执行完毕,对方的接口才会执行表操作