Skip to content

HDDS-17312. gRPC client read and EC write timeouts are truncated to whole seconds - #11694

Merged
smengcl merged 2 commits into
apache:masterfrom
smengcl:HDDS-17312
Oct 23, 2026
Merged

smengcl merged 2 commits into
apache:masterfrom
smengcl:HDDS-17312

Conversation

@smengcl

@smengcl smengcl commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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, 1500ms, 30s and a value without unit (45). It fails without the fix. Existing hdds-client unit tests pass.

🤖 Generated with Claude Code

…hole seconds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 22, 2026 10:22
@smengcl smengcl added the AI-gen label Oct 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@jojochuang jojochuang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a minor issue but looks good to me.

@jojochuang
jojochuang marked this pull request as ready for review October 23, 2026 06:44
@smengcl

smengcl commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @jojochuang for the review.

@smengcl
smengcl merged commit 19d77b4 into apache:master Oct 23, 2026
73 of 74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants