[
https://issues.apache.org/jira/browse/HDFS-16717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17583501#comment-17583501
]
ASF GitHub Bot commented on HDFS-16717:
---------------------------------------
Hexiaoqiao commented on PR #4699:
URL: https://github.com/apache/hadoop/pull/4699#issuecomment-1223863889
Committed to trunk. Thanks @ZanderXu for your contributions!
> Replace NPE with IOException in DataNode.class
> ----------------------------------------------
>
> Key: HDFS-16717
> URL: https://issues.apache.org/jira/browse/HDFS-16717
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: ZanderXu
> Assignee: ZanderXu
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]