Repository navigation
Conversation
TripleInvoker.invokeUnary passed a hardcoded 3000ms fallback into RpcUtils.calculateTimeout. With no timeout on the URL, invocation, or RpcContext, a Triple unary call waited 3s while Dubbo and injvm used DEFAULT_TIMEOUT (1000ms). An explicit URL timeout still wins. Fixes apache#14151
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 3.3 #16598 +/- ##
============================================
+ Coverage 61.17% 61.20% +0.02%
- Complexity 30 11765 +11735
============================================
Files 1953 1953
Lines 89359 89360 +1
Branches 13488 13487 -1
============================================
+ Hits 54665 54692 +27
+ Misses 29068 29050 -18
+ Partials 5626 5618 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
LI123456mo
reviewed
Nov 23, 2026
LI123456mo
left a comment
Contributor
There was a problem hiding this comment.
Could the PR need a test for invocation, or RpcContext since they are more preferenced or URL will stand in for all ? since the description is not explicit on only URL.
LGTM according to the required default behaviour
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change?
TripleInvoker.invokeUnarypassed a hardcoded3000fallback intoRpcUtils.calculateTimeout. With no timeout on the URL, invocation, or RpcContext, a Triple unary call waited 3 seconds whileDubboInvokerandInjvmInvokerwait forCommonConstants.DEFAULT_TIMEOUT(1000ms).This change passes
CommonConstants.DEFAULT_TIMEOUTas that fallback, matching the Java Dubbo protocol. An explicit URL or invocation timeout still wins.DubboInvokeris unchanged.Fixes #14151
Verified on Temurin 21.0.12+8 (compiler release 8):
TripleInvokerTest: Tests run: 2, Failures: 0, Errors: 0, Skipped: 0. The extra Surefire flag keeps dependency modules that do not contain this test from failing the reactor.Checklist