[ 
https://issues.apache.org/jira/browse/HADOOP-3963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629003#action_12629003
 ] 

Pete Wyckoff commented on HADOOP-3963:
--------------------------------------

no new tests because this is only when something is drastically wrong and in 
the current libhdfs environment that is almost impossible to test.  

The fact that the tests pass show that under normal conditions, everything is 
correct.

We could make libhdfs testing more robust be changing hdfs_test.c to 
testHdfs.java, but that's a bigger project.

Can someone please commit this as there 3 other pending libhdfs patches in the 
pipeline.

thanks, pete


> libhdfs should never exit on its own but rather return errors to the calling 
> application
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3963
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3963
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>             Fix For: 0.19.0
>
>         Attachments: patch0.txt, patch1.txt
>
>
> A a library, libhdfs would be better to return errors rather than directly 
> exiting. This way the calling application can determine what to do on error. 
> And it is more unix library like to handle errors this way.
> Some applications like fuse-dfs need to handle the exit themselves after 
> emitting an appropriate error message to its log.

-- 
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