Skip to content

HDFS-17939. StripedReader should only scan data blocks when initializing zero stripe indices#8563

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

HDFS-17939. StripedReader should only scan data blocks when initializing zero stripe indices#8563
CapMoon wants to merge 1 commit into
apache:trunkfrom
CapMoon:HDFS-17939

Conversation

@CapMoon

@CapMoon CapMoon commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

HDFS-17939. StripedReader should only scan data blocks when initializing zero stripe indices

Description of PR

In StripedReader#initZeroStrip(), zeroStripeIndices is initialized by scanning all internal blocks, including parity blocks.

The loop should only scan data block indices, which would make the implementation match the meaning and allocated size of zeroStripeIndices, and avoid suggesting that parity block indices may be populated as zero stripe indices.

How was this patch tested?

Existing reconstruction tests already cover partial block groups where zero data strips are padded for decoding. The proposed change should not affect observable behavior, since parity indices are never valid zero stripe indices for non-empty block groups.

@CapMoon

CapMoon commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@ZanderXu @kokonguyen191 masters, plz take a look when you are available

@ZanderXu ZanderXu 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.

LGTM + 1

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