Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8707 Implement an async pure c++ HDFS client
  3. HDFS-9827

libhfds++: C++ exceptions should never escape the C API

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • hdfs-client
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bobhansen Bob Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: