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] [Commented] (HDFS-10511) libhdfs++: make error returning mechanism consistent across all hdfs operations
Date Thu, 09 Jun 2016 15:26:21 GMT

    [ https://issues.apache.org/jira/browse/HDFS-10511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15322696#comment-15322696
] 

Bob Hansen commented on HDFS-10511:
-----------------------------------

Notably, for the C-API functions defined in hdfs.h and hdfs_ext.h, we should adopt the standard
that errno is always set to 0 on success and non-0 on failure.

For functions that return an errorcode (as opposed to returning a value like hdfsSeek or a
structure like hdfsStatAll), they should always return errno.

> 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
>
> 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


Mime
View raw message