Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EFDA4182EA for ; Thu, 3 Mar 2016 15:40:18 +0000 (UTC) Received: (qmail 16518 invoked by uid 500); 3 Mar 2016 15:40:18 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 16425 invoked by uid 500); 3 Mar 2016 15:40:18 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 16350 invoked by uid 99); 3 Mar 2016 15:40:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2016 15:40:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1C6042C1F5A for ; Thu, 3 Mar 2016 15:40:18 +0000 (UTC) Date: Thu, 3 Mar 2016 15:40:18 +0000 (UTC) From: "James Clampffer (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9699) libhdfs++: Add appropriate catch blocks for ASIO operations that throw MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-9699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15177971#comment-15177971 ] James Clampffer commented on HDFS-9699: --------------------------------------- Committed this to HDFS-8707. > libhdfs++: Add appropriate catch blocks for ASIO operations that throw > ---------------------------------------------------------------------- > > Key: HDFS-9699 > URL: https://issues.apache.org/jira/browse/HDFS-9699 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: James Clampffer > Assignee: Bob Hansen > Attachments: HDFS-6966.HDFS-8707.000.patch, HDFS-9699.HDFS-8707.001.patch, HDFS-9699.HDFS-8707.002.patch, cancel_backtrace.txt > > > libhdfs++ doesn't create exceptions of its own but it should be able to gracefully handle exceptions thrown by libraries it uses, particularly asio. > libhdfs++ should be able to catch most exceptions within reason either at the call site or in the code that spins up asio worker threads. Certain system exceptions like std::bad_alloc don't need to be caught because by that point the process is likely in a unrecoverable state. -- This message was sent by Atlassian JIRA (v6.3.4#6332)