hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4997) libhdfs doesn't return correct error codes in most cases
Date Tue, 03 Dec 2013 23:39:36 GMT

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

Hudson commented on HDFS-4997:
------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #4822 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/4822/])
HDFS-4997. libhdfs does not return correct error code in most cases (cmccabe) (cmccabe: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1547637)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/hdfs_json_parser.c
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/exception.c
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/test_libhdfs_threaded.c


> libhdfs doesn't return correct error codes in most cases
> --------------------------------------------------------
>
>                 Key: HDFS-4997
>                 URL: https://issues.apache.org/jira/browse/HDFS-4997
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>             Fix For: 2.3.0
>
>         Attachments: HDFS-4997.001.patch
>
>
> libhdfs has some code to translate Java exceptions into C error codes.  Unfortunately,
the exceptions are returned to us in "dotted" format, but the code is expecting them to be
in "slash-separated" format.  This results in most exceptions just leading to a generic error
code.
> We should fix this and add a unit test to ensure this continues to work.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message