-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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-16832. [SBN READ] Fix NPE when check the block location of empty… #5099
Conversation
🎊 +1 overall
This message was automatically generated. |
@xkrogen @shvachko @ZanderXu Can you please review this PR? NPE is introduced by HDFS-16732. NPE will reproduce by below:
|
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.
@zhengchenyu Thanks for your report. LGTM
@zhengchenyu Can you rebase trunk and trigger the yetus? |
ec991cf
to
bea887a
Compare
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@zhengchenyu Thanks for your update. I will merge it tomorrow if there are no other comments. |
Okay, Thanks for your review again! It had better to package HDFS-16832 and HDFS-16732 into same release. Sorry for this bug, I should fix in HDFS-16732. I found this after HDFS-16732 was online some weeks. |
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.
Thanks for fixing this @zhengchenyu !
...s-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
Merging to trunk. Thank you for the contribution @zhengchenyu ! |
Merged to |
…e block location of empty directory (apache#5099) Signed-off-by: Erik Krogen <xkrogen@apache.org> Reviewed-by: Zengqiang Xu <xuzq_zander@163.com>
…e block location of empty directory (apache#5099) Signed-off-by: Erik Krogen <xkrogen@apache.org> Reviewed-by: Zengqiang Xu <xuzq_zander@163.com>
Description of PR
https://issues.apache.org/jira/browse/HDFS-16832
How was this patch tested?
For code changes:
check null point