Fix corrupted block causing reads to fail#17564
Fix corrupted block causing reads to fail#17564alluxio-bot merged 8 commits intoAlluxio:master-2.xfrom
Conversation
| To detect corrupted blocks, two extra file system calls |
beinan left a comment
There was a problem hiding this comment.
looks good to me though there might be very minor performance impact on the read path
| alluxio-bot, merge this please. |
| merge failed: |
| alluxio-bot, merge this please |
| alluxio-bot, cherry-pick this branch 2.10 please |
| alluxio-bot, cherry-pick this to branch-2.10 please |
| Auto cherry-pick to branch |
### What changes are proposed in this pull request? Fix read failure when a mismatch occurs between the block size recorded in memory by `BlockMeta` and the length of the actual physical block file. When such a mismatch is detected, the block is removed from worker storage, and worker falls back to reading from UFS. ### Why are the changes needed? This causes reading the block to fail. ### Does this PR introduce any user facing changes? No. pr-link: #17564 change-id: cid-2758ff97e5016c1aae7ededb244e919233ae6d3b
| alluxio-bot, cherry-pick this to branch-2.9 please |
| Auto cherry-pick unsuccessful Failed to setup local git for auto cherry-pick |
| alluxio-bot, cherry-pick this to branch-2.9 please |
| Auto cherry-pick unsuccessful Failed to setup local git for auto cherry-pick |
…reads to fail Fix read failure when a mismatch occurs between the block size recorded in memory by `BlockMeta` and the length of the actual physical block file. When such a mismatch is detected, the block is removed from worker storage, and worker falls back to reading from UFS. This causes reading the block to fail. No. pr-link: Alluxio#17564 change-id: cid-2758ff97e5016c1aae7ededb244e919233ae6d3b
…reads to fail Fix read failure when a mismatch occurs between the block size recorded in memory by `BlockMeta` and the length of the actual physical block file. When such a mismatch is detected, the block is removed from worker storage, and worker falls back to reading from UFS. This causes reading the block to fail. No. pr-link: Alluxio#17564 change-id: cid-2758ff97e5016c1aae7ededb244e919233ae6d3b
…reads to fail Fix read failure when a mismatch occurs between the block size recorded in memory by `BlockMeta` and the length of the actual physical block file. When such a mismatch is detected, the block is removed from worker storage, and worker falls back to reading from UFS. This causes reading the block to fail. No. pr-link: Alluxio#17564 change-id: cid-2758ff97e5016c1aae7ededb244e919233ae6d3b
…reads to fail Fix read failure when a mismatch occurs between the block size recorded in memory by `BlockMeta` and the length of the actual physical block file. When such a mismatch is detected, the block is removed from worker storage, and worker falls back to reading from UFS. This causes reading the block to fail. No. pr-link: Alluxio#17564 change-id: cid-2758ff97e5016c1aae7ededb244e919233ae6d3b
### What changes are proposed in this pull request? Fix read failure when a mismatch occurs between the block size recorded in memory by `BlockMeta` and the length of the actual physical block file. When such a mismatch is detected, the block is removed from worker storage, and worker falls back to reading from UFS. ### Why are the changes needed? This causes reading the block to fail. ### Does this PR introduce any user facing changes? No. pr-link: Alluxio#17564 change-id: cid-2758ff97e5016c1aae7ededb244e919233ae6d3b
What changes are proposed in this pull request?
Fix read failure when a mismatch occurs between the block size recorded in memory by
BlockMetaand the length of the actual physical block file. When such a mismatch is detected, the block is removed from worker storage, and worker falls back to reading from UFS.Why are the changes needed?
This causes reading the block to fail.
Does this PR introduce any user facing changes?
No.