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


   使用rpc开发模式
   消费者添加了一个最简单的Handler
   
   ```
   public class TimeoutHandlerInterceptor implements Handler {
       @Override
       public void handle(Invocation invocation, AsyncResponse asyncResp) 
throws Exception {
           invocation.next(asyncResp);
       }
   }
   ```
   
   ```
   handler:
       chain:
         Consumer:
           default: timeout-handler,loadbalance
   ```
   然后调用消费者之后 消费者就一直会报错
   
   ```
   2021-09-10 12:54:07.215  INFO 23080 --- [ntloop-thread-6] 
o.a.s.f.c.u.SPIServiceUtils              :   0. 
org.apache.servicecomb.core.tracing.BraveTraceIdGenerator.
   2021-09-10 12:54:26.792  INFO 23080 --- [ntloop-thread-7] 
o.a.s.f.v.s.TcpServerConnection          : connect from 192.168.2.79:52340, in 
thread transport-vert.x-eventloop-thread-7
   2021-09-10 12:54:26.808 ERROR 23080 --- [ntloop-thread-7] 
o.a.s.f.v.s.TcpServerConnection          : disconected from 192.168.2.79:52340, 
in thread transport-vert.x-eventloop-thread-7
   2021-09-10 12:54:36.797  INFO 23080 --- [ntloop-thread-2] 
o.a.s.f.v.s.TcpServerConnection          : connect from 192.168.2.79:56812, in 
thread transport-vert.x-eventloop-thread-2
   2021-09-10 12:54:36.798 ERROR 23080 --- [ntloop-thread-2] 
o.a.s.f.v.s.TcpServerConnection          : disconected from 192.168.2.79:56812, 
in thread transport-vert.x-eventloop-thread-2
   2021-09-10 12:54:46.803  INFO 23080 --- [ntloop-thread-8] 
o.a.s.f.v.s.TcpServerConnection          : connect from 192.168.2.79:58755, in 
thread transport-vert.x-eventloop-thread-8
   2021-09-10 12:54:46.816 ERROR 23080 --- [ntloop-thread-8] 
o.a.s.f.v.s.TcpServerConnection          : disconected from 192.168.2.79:58755, 
in thread transport-vert.x-eventloop-thread-8
   2021-09-10 12:54:56.809  INFO 23080 --- [ntloop-thread-4] 
o.a.s.f.v.s.TcpServerConnection          : connect from 192.168.2.79:49693, in 
thread transport-vert.x-eventloop-thread-4
   2021-09-10 12:54:56.823 ERROR 23080 --- [ntloop-thread-4] 
o.a.s.f.v.s.TcpServerConnection          : disconected from 192.168.2.79:49693, 
in thread transport-vert.x-eventloop-thread-4
   ```
   
   当注释掉这个配置
   ```
   handler:
       chain:
         Consumer:
           default: timeout-handler,loadbalance
   ```
   就不报错了


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to