smengcl opened a new pull request, #11694: URL: https://github.com/apache/ozone/pull/11694
Generated-by: Claude Code (Opus 5.5) ## What changes were proposed in this pull request? `XceiverClientGrpc` reads `ozone.client.read.timeout`, and `ECXceiverClientGrpc` reads `ozone.client.ec.grpc.write.timeout`, in seconds and applies the result as the gRPC deadline in seconds. A sub-second value such as `500ms` becomes 0, so every request to the datanode fails immediately with `DEADLINE_EXCEEDED`, and `1500ms` becomes 1s. The short-circuit client and server already read `ozone.client.read.timeout` in milliseconds. This change keeps the timeout in milliseconds and uses it as the deadline in milliseconds. A value without unit still means seconds for these two keys, so existing configurations keep their meaning. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17312 ## How was this patch tested? Added `TestXceiverClientGrpcChannel#timeoutIsInMillis` for both clients with `500ms`, `30s` and a value without unit (`45`). It fails without the fix. Existing `hdds-client` unit tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
