Skip to content

dubbo.properties 配置文件 dubbo.service.接口.方法.timeout=4500 超时配置失效 没起作用[Q/A][Java SDK (Component)] xxx #15186

Discussion options

You must be logged in to vote

1 找到 future.get(timeout) 配置 超时的地方
dubbo-3.2.1.jar 默认 int timeout = RpcUtils.calculateTimeout(getUrl(), invocation, invocation.getMethodName(), 3000);

org.apache.dubbo.rpc.proxy.InvokerInvocationHandler#invoke
|->
org.apache.dubbo.rpc.RpcInvocation
|-> 实例化 远程调用 RpcInvocation
org.apache.dubbo.rpc.proxy.InvocationUtil#invoke
org.apache.dubbo.rpc.protocol.AbstractInvoker#invoke
|->调用 前/中/后 逻辑先后次序
org.apache.dubbo.rpc.protocol.AbstractInvoker#prepareInvocation
org.apache.dubbo.rpc.protocol.AbstractInvoker#addInvocationAttachments
|->【tip】tip: 这里会从 上下文 RpcContext.getClientAttachment().getObjectAttachments(); 中将 客户端 线程调用上下文 附件参数 赋值到 RpcInvocation.attachments 上去

			org.apache.dubbo.rpc.protocol.A…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by repeatthink123yuchao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants