[ 
https://issues.apache.org/jira/browse/HDFS-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831733#action_12831733
 ] 

dhruba borthakur commented on HDFS-931:
---------------------------------------

> Is there any value in letting exceptions out of a close? What will the 
> application do with an exception thrown on a close?

The application can know that the data it wrote to the file could be bad and 
trigger appropriate recovery.  In fact, it is very important that this 
exception be thrown to the applications instead of silently ignoring it.

> DFSClient.close doesn't rethrow exceptions thrown by automatically closed 
> clients
> ---------------------------------------------------------------------------------
>
>                 Key: HDFS-931
>                 URL: https://issues.apache.org/jira/browse/HDFS-931
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client
>    Affects Versions: 0.20.1, 0.21.0, 0.22.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Critical
>         Attachments: hdfs-931.txt, hdfs-931.txt, 
> TEST-org.apache.hadoop.hdfs.TestFiPipelines.txt
>
>
> I've written a fault injection test that simply throws exceptions on every 
> ack.readFields call in ResponseProcessor. This ought to raise an exception to 
> the client trying to use the stream, but instead it ignores it silently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to