上游服务feign调用下游服务报超时错误RetryableException/SocketTimeoutException,虽然上游服务停止了,但下游服务还在运行。

a服务http/feign调用b服务接口,b服务接口运行时间超过1min,导致a服务超时错误,如下。虽然a服务报错线程退出了,但是b服务还在继续运行。所以a服务不会影响b服务,但是b服务会影响a服务。

feign.RetryableException: Read timed out executing GET http://localhost:8889/不给看略略略
	at feign.FeignException.errorExecuting(FeignException.java:249) ~[feign-core-10.10.1.jar:?]
	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:129) ~[feign-core-10.10.1.jar:?]
	at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:89) ~[feign-core-10.10.1.jar:?]
	at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:100) ~[feign-core-10.10.1.jar:?]
	at com.sun.proxy.$Proxy193.executeAllStrategies(Unknown Source) ~[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_252]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_252]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252]

Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_252]
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[?:1.8.0_252]
	at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[?:1.8.0_252]
	at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_252]
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) ~[?:1.8.0_252]
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) ~[?:1.8.0_252]
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345) ~[?:1.8.0_252]

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值