arimu1 opened a new pull request, #16598: URL: https://github.com/apache/dubbo/pull/16598
## What is the purpose of the change? `TripleInvoker.invokeUnary` passed a hardcoded `3000` fallback into `RpcUtils.calculateTimeout`. With no timeout on the URL, invocation, or RpcContext, a Triple unary call waited 3 seconds while `DubboInvoker` and `InjvmInvoker` wait for `CommonConstants.DEFAULT_TIMEOUT` (1000ms). This change passes `CommonConstants.DEFAULT_TIMEOUT` as that fallback, matching the Java Dubbo protocol. An explicit URL or invocation timeout still wins. `DubboInvoker` is unchanged. Fixes #14151 Verified on Temurin 21.0.12+8 (compiler release 8): ``` export JAVA_HOME=/Users/fardanan/Library/Java/JavaVirtualMachines/jdk-21.0.12+8/Contents/Home ./mvnw -pl dubbo-rpc/dubbo-rpc-triple -am test -Dtest=TripleInvokerTest -Dsurefire.failIfNoSpecifiedTests=false ``` `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 - [x] Make sure there is a [GitHub_issue](https://github.com/apache/dubbo/issues) field for the change. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in [dubbo samples](https://github.com/apache/dubbo-samples) project. - [x] Make sure gitHub actions can pass. [Why the workflow is failing and how to fix it?](../CONTRIBUTING.md) Made with [Cursor](https://cursor.com) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
