Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 213AE174BF for ; Wed, 8 Oct 2014 05:54:35 +0000 (UTC) Received: (qmail 92731 invoked by uid 500); 8 Oct 2014 05:54:34 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 92611 invoked by uid 500); 8 Oct 2014 05:54:34 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 92595 invoked by uid 99); 8 Oct 2014 05:54:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 05:54:34 +0000 Date: Wed, 8 Oct 2014 05:54:33 +0000 (UTC) From: "Haohui Mai (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-7207) libhdfs3 should not expose exceptions in public API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Haohui Mai created HDFS-7207: -------------------------------- Summary: libhdfs3 should not expose exceptions in public API Key: HDFS-7207 URL: https://issues.apache.org/jira/browse/HDFS-7207 Project: Hadoop HDFS Issue Type: Bug Reporter: Haohui Mai Priority: Blocker There are three major disadvantages of exposing exceptions in the public API: * Exposing exceptions in public APIs forces the downstream users to be compiled with {{-fexceptions}}, which might be infeasible in many use cases. * It forces other bindings to properly handle all C++ exceptions, which might be infeasible especially when the binding is generated by tools like SWIG. * It forces the downstream users to properly handle all C++ exceptions, which can be cumbersome as in certain cases it will lead to undefined behavior (e.g., throwing an exception in a destructor is undefined.) -- This message was sent by Atlassian JIRA (v6.3.4#6332)