-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HDFS-16180.FsVolumeImpl.nextBlock should consider that the block meta file has been deleted #3315
Conversation
💔 -1 overall
This message was automatically generated. |
cc @jojochuang. Thank you for the review. I think we should catch FileNotFoundException about the meta file in FsVolumeImpl.nextBlock. |
The checks from jenkins has failed, but I can't find any error about the patch. Please check it again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the purpose to reduce the ERROR log to WARN log?
Yes. It can reduce the ERROR log. |
Ok make sense. A missing metadata shouldn't be ERROR because volume scanner or disk balancer can still continue. |
Thanks @jojochuang for the review. Unit test failures seem unrelated. Is it ok to merge it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry. I thought I submitted this review but it didn't go out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated my review. +1
…a file has been deleted. (apache#3315)
…a file has been deleted. (apache#3315) (cherry picked from commit 9084c72) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetUtil.java (cherry picked from commit 7432804) (cherry picked from commit 8edc48f6ef9465dced3c96b32b133870215e96c3) Signed-off-by: Arpit Agarwal <[email protected]> Change-Id: I5ac63fd46c2166af67e7cc9702d2af9e5cb31d51
Description of PR
FsVolumeImpl.nextBlock should consider that the block meta file has been deleted
https://issues.apache.org/jira/browse/HDFS-16180
In my cluster, we found that when VolumeScanner run, sometime dn will throw some error log below
When VolumeScanner scan block blk_1142977964, it has been deleted by datanode, scanner can not find the meta file of blk_1142977964, so it throw these error log.
Maybe we should handle FileNotFoundException during nextblock to reduce error log and nextblock retry times.
How was this patch tested?
no new test.
For code changes:
FsVolumeImpl.nextBlock hanlde FileNotFoundException