[
https://issues.apache.org/jira/browse/HDFS-7018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14252549#comment-14252549
]
Haohui Mai commented on HDFS-7018:
----------------------------------
bq. The reason is that if you attempt to throw a C++ exception through a C API,
the program will abort (technically, std::terminate will be called). I realize
you probably think you have caught all possible exceptions, but since this is
C++, we can never really be sure without the catch (...)
This brings up a good point. Should we ensure that the C++ API is
exception-free first and revisit this jira? Otherwise the binding has to wrap
every single function with {{catch(...)}}.
> Implement C interface for libhdfs3
> ----------------------------------
>
> Key: HDFS-7018
> URL: https://issues.apache.org/jira/browse/HDFS-7018
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Reporter: Zhanwei Wang
> Assignee: Zhanwei Wang
> Attachments: HDFS-7018-pnative.002.patch, HDFS-7018.patch
>
>
> Implement C interface for libhdfs3
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)