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 2021/09/10 04:57:16 UTC

[GitHub] [servicecomb-java-chassis] huanghezhen opened a new issue #2564: Handler 的问题

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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] huanghezhen closed issue #2564: Handler 的问题

Posted by GitBox <gi...@apache.org>.
huanghezhen closed issue #2564:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2564


   


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] huanghezhen commented on issue #2564: Handler 的问题

Posted by GitBox <gi...@apache.org>.
huanghezhen commented on issue #2564:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2564#issuecomment-916687549


   有进,启动没有报错


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] huanghezhen commented on issue #2564: Handler 的问题

Posted by GitBox <gi...@apache.org>.
huanghezhen commented on issue #2564:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2564#issuecomment-916637052


   两个服务我都没注册rest端口
   
   当我注册rest端口时 也不出现那些错误了


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2564: Handler 的问题

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2564:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2564#issuecomment-916682507


   有调试下TimeoutHandlerInterceptor 吗? 是否进入处理? 启动过程中是否有错误。 


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org