Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-8276. EC file checksum calculation fails with topology-aware read enabled #4495

Merged
merged 5 commits into from
Mar 29, 2023

Conversation

adoroszlai
Copy link
Contributor

@adoroszlai adoroszlai commented Mar 29, 2023

What changes were proposed in this pull request?

ECFileChecksumHelper#getChunkInfos copies the original EC pipeline and limits nodes to specific replicas. However, the list of "nodes in order", used for topology-aware read, still contains all original nodes. Thus it may happen that read is attempted from the wrong node.

This patch updates "nodes in order" in the copy to reflect the same set of nodes as the unordered one.

Also remove a stray placeholder from the error message:
Fail to get block checksum for ... checksum combine mode : {}COMPOSITE_CRC

https://issues.apache.org/jira/browse/HDDS-8276

How was this patch tested?

Updated the integration test TestOzoneFileChecksum to cover both topology-aware and regular read.

https://github.com/adoroszlai/hadoop-ozone/actions/runs/4553955626

@adoroszlai adoroszlai self-assigned this Mar 29, 2023
@adoroszlai adoroszlai added the EC label Mar 29, 2023
Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

LGTM - Good work figuring this one out.

@adoroszlai adoroszlai merged commit 4cb0e68 into apache:master Mar 29, 2023
@adoroszlai adoroszlai deleted the HDDS-8276 branch March 29, 2023 20:27
@adoroszlai
Copy link
Contributor Author

Thanks @sodonnel for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants