[
https://issues.apache.org/jira/browse/HDFS-4997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838073#comment-13838073
]
Todd Lipcon commented on HDFS-4997:
-----------------------------------
+1, looks good to me. We should mark this as incompatible, because it's
possible that a developer was checking the previous error codes. However, it's
clearly a bug/oversight, and the current behavior doesn't match up with the
documented/expected behavior. Moreover, most programmers would check against
non-zero errno, not against a specific value like 255.
> 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
> 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)