Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2FF74200B21 for ; Fri, 10 Jun 2016 14:45:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2EB4D160A04; Fri, 10 Jun 2016 12:45:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7FE12160A5A for ; Fri, 10 Jun 2016 14:45:22 +0200 (CEST) Received: (qmail 81041 invoked by uid 500); 10 Jun 2016 12:45:21 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 80970 invoked by uid 99); 10 Jun 2016 12:45:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 12:45:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6001A2C1F62 for ; Fri, 10 Jun 2016 12:45:21 +0000 (UTC) Date: Fri, 10 Jun 2016 12:45:21 +0000 (UTC) From: "Anatoli Shein (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10511) libhdfs++: make error returning mechanism consistent across all hdfs operations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Jun 2016 12:45:23 -0000 [ https://issues.apache.org/jira/browse/HDFS-10511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324387#comment-15324387 ] Anatoli Shein commented on HDFS-10511: -------------------------------------- Update: we decided to go with the following: 0 on success (or other returned value specific to the function) -1 on failure (and set errno globally) > libhdfs++: make error returning mechanism consistent across all hdfs operations > ------------------------------------------------------------------------------- > > Key: HDFS-10511 > URL: https://issues.apache.org/jira/browse/HDFS-10511 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: Anatoli Shein > Assignee: Anatoli Shein > > Errno should always be set. > If function is returning a code on stack, it should be consistent with errno. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org