You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "eBugs (JIRA)" <ji...@apache.org> on 2019/05/12 07:03:00 UTC

[jira] [Created] (HDFS-14486) Some exception classes do accurately describe why they are thrown

eBugs created HDFS-14486:
----------------------------

             Summary: Some exception classes do accurately describe why they are thrown
                 Key: HDFS-14486
                 URL: https://issues.apache.org/jira/browse/HDFS-14486
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: eBugs


Dear HDFS developers, we are developing a tool to detect exception-related bugs in Java. Our prototype has spotted a few {{throw}} statements whose exception class does not accurately describe why they are thrown. This can be dangerous since it makes correctly handling them challenging. For example, in an old bug, HDFS-8224, throwing a general {{IOException}} makes it difficult to perform data recovery specifically when a metadata file is corrupted.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org