-
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-16717. Replace NPE with IOException in DataNode.class #4699
Conversation
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@Hexiaoqiao @ayushtkn Masters, can help me review this patch? Thanks |
@Hexiaoqiao Master, ping. Can help me review this patch? Thanks |
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.
LGTM. Let's wait if any other folks are interested this improvement. Thanks.
💔 -1 overall
This message was automatically generated. |
Committed to trunk. Thanks @ZanderXu for your contributions! |
just want to say this was a really amusing title in the git logs. might use it myself "replace NPE with working code in ..." |
…). Contributed by ZanderXu. Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
Description of PR
In current logic, if storage not yet initialized, it will throw a NPE in DataNode.class. Developers or SREs are very sensitive to NPE, so I feel that we can use IOException instead of NPE when storage not yet initialized.