Skip to content

HDFS-17929. Revisit retrying mechanism in DFSStripedInputStream#8524

Open
CapMoon wants to merge 1 commit into
apache:trunkfrom
CapMoon:HDFS-17929
Open

HDFS-17929. Revisit retrying mechanism in DFSStripedInputStream#8524
CapMoon wants to merge 1 commit into
apache:trunkfrom
CapMoon:HDFS-17929

Conversation

@CapMoon

@CapMoon CapMoon commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Description of PR

DFSStripedInputStream#createBlockReader handles reader creation failures by re-fetching the block location, because the striped internal block may have moved. However, after re-fetching it unconditionally calls addToLocalDeadNodes().

There is also a related retry issue in DFSStripedInputStream#readWithStrategy. The method retries after an IOException, but the next blockSeekTo() can still use cached LocatedBlocks. Without refreshing open file information before retrying, the retry may reuse stale block locations and hit the same moved-block condition again.

How was this patch tested?

Unit tests

@CapMoon

CapMoon commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@ZanderXu @hfutatzhanghb masters, can take a look at this mr when you are available

@hfutatzhanghb

Copy link
Copy Markdown
Member

@ZanderXu @hfutatzhanghb masters, can take a look at this mr when you are available

Thanks for reporting and involving me here. Will review this laterly.

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.

2 participants