hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Hansen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-9827) libhfds++: C++ exceptions should never escape the C API
Date Thu, 18 Feb 2016 16:05:18 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Bob Hansen resolved HDFS-9827.
    Resolution: Duplicate

I thought we had captured that work somewhere, but I couldn't find it when I was looking through
the bug list.

This one is a dup of HDFS-9699.

> 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
>          Components: hdfs-client
>            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

View raw message