You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/03/23 09:02:16 UTC

[GitHub] [dubbo] galfordliu opened a new issue #9832: @DubboService配置的timeout未生效

galfordliu opened a new issue #9832:
URL: https://github.com/apache/dubbo/issues/9832


   ### Environment
   
   * Dubbo version: 3.0.6
   * Operating System version: centos 7
   * Java version: 11.0.2
   
   ### Steps to reproduce this issue
   
   1. 启动一个服务,timeout设置为-1,永不超时
   2. 调用这个服务中的测试方法,超过1秒再返回
   3. 系统会打印超过1000ms的告警信息,timeout未生效。不影响程序使用,但是会打印告警日志。
   
   
   服务注解配置为
   <code>
   @DubboService(interfaceClass = IAnalysisADBService.class,
           executes = 200,
           retries = 0,
           cluster = "failfast",
           timeout = -1
   )
   </code>
   
   在dubbo 2.7.x 版本时一切正常。但是升级到dubbo 3.0.6之后,每次执行一个超过1秒的调用,都会打印告警信息
   
   22-03-23 16:49:47.080 [WARN ] [DubboServerHandler-172.28.53.72:25051-thread-10] o.a.d.r.f.ProfilerServerFilter                     :   [DUBBO] [Dubbo-Provider] execute service com.syyx.tpf.common.bigdata.analysis.facade.IAnalysisADBService:0.0.0#analysisTask cost 1830.049551 ms, this invocation almost (maybe already) timeout. Timeout: 1000ms
   client: xxxxxxxxxxxx
   invocation context:
   input=599;
   path=com.syyx.tpf.common.bigdata.analysis.facade.IAnalysisADBService;
   remote.application=tpf-bigdata-analysis-cmd-task;
   dubbo=2.0.2;
   id=6;
   interface=com.syyx.tpf.common.bigdata.analysis.facade.IAnalysisADBService;
   version=0.0.0;
   thread info: 
   Start time: 14102589299377092
   +-[ Offset: 0.000000ms; Usage: 1830.049551ms, 100% ] Receive request. Server invoke begin.
     +-[ Offset: 0.111898ms; Usage: 1829.823148ms, 99% ] Receive request. Server biz impl invoke begin., dubbo version: 3.0.6, current 
   
   查看了ProfilerServerFilter的代码:
   <code>   timeout = invoker.getUrl().getMethodPositiveParameter(invocation.getMethodName(), TIMEOUT_KEY, DEFAULT_TIMEOUT);</code>
   判断获取的timeout是默认值DEFAULT_TIMEOUT。但是我在@DubboService上配置的是-1,应该永不超时才对。是3.x版本有什么变化我需要跟着修复吗?还是这是一个bug?


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM commented on issue #9832: @DubboService配置的timeout未生效

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #9832:
URL: https://github.com/apache/dubbo/issues/9832#issuecomment-1079838303


   @galfordliu 
   It will be fixed in version 3.0.7.


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM closed issue #9832: @DubboService配置的timeout未生效

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #9832:
URL: https://github.com/apache/dubbo/issues/9832


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] wangchengming666 commented on issue #9832: @DubboService配置的timeout未生效

Posted by GitBox <gi...@apache.org>.
wangchengming666 commented on issue #9832:
URL: https://github.com/apache/dubbo/issues/9832#issuecomment-1077445758


   I'll FIX it


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org