You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Bob Hansen (JIRA)" <ji...@apache.org> on 2016/02/18 14:57:18 UTC

[jira] [Created] (HDFS-9827) libhfds++: C++ exceptions should never escape the C API

Bob Hansen created HDFS-9827:
--------------------------------

             Summary: libhfds++: C++ exceptions should never escape the C API
                 Key: HDFS-9827
                 URL: https://issues.apache.org/jira/browse/HDFS-9827
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Bob Hansen


Some low-level subsystems (asio, rapidxml) throw exceptions on error.  While our internal code doesn't utilize exceptions, these are part of the libraries we are using.

Calls to asio should be wrapped in try blocks.  

For additional safety, all of the C api implementations should have try...catch(...) blocks to catch any C++ exceptions and make sure they don't bring down the calling stack, which might have no concept of exceptions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)