HDDS-15521. StreamBlockInputStream fails with TimeoutIOException without retry or failover#10479
Draft
sadanand48 wants to merge 2 commits into
Draft
HDDS-15521. StreamBlockInputStream fails with TimeoutIOException without retry or failover#10479sadanand48 wants to merge 2 commits into
sadanand48 wants to merge 2 commits into
Conversation
…out retry or datanode failover.
adoroszlai
reviewed
Jun 10, 2026
adoroszlai
left a comment
Contributor
There was a problem hiding this comment.
Thanks @sadanand48 for the patch. To reduce overhead of cluster startup, can you please rewrite test cases to share a single cluster?
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 changes were proposed in this pull request?
StreamBlockInputStream: Added a retry loop in dataAvailableToRead() that catches read failures (including TimeoutIOException) and calls handleExceptions() to release the stream, refresh pipeline/token, and reset requestedLength = position so reads resume from the current offset. On retry, failed datanodes are recorded in a per-stream failedStreamingDatanodes set and excluded from the next init.
XceiverClientGrpc: Extended initStreamRead() to accept an excluded-datanode set and skip those nodes when opening a new streaming stream, so retries target a different replica instead of rebinding to the same dead one. Added INFO logging to show which datanode each init selects.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15521
How was this patch tested?
Mini-Ozone cluster test added