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

Hudson commented on HDFS-9792:
------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13869 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/13869/])
HDFS-9792: libhdfs++: EACCES not setting errno correctly.  Contributed 
(james.clampffer: rev 69ee2e6a7eb442f4d161ea32376685655714e03a)
* (edit) 
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/bindings/c/hdfs.cc


> libhdfs++: EACCES not setting errno correctly
> ---------------------------------------------
>
>                 Key: HDFS-9792
>                 URL: https://issues.apache.org/jira/browse/HDFS-9792
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: Bob Hansen
>            Assignee: Bob Hansen
>            Priority: Major
>         Attachments: HDFS-9792.HDFS-8707.000.patch, 
> HDFS-9792.HDFS-8707.000.patch
>
>
> When libhdfs++ gets a permissions error, it is failing to initialize errnum.
> Due to changes passing in the night, the code in hdfs.cc that reads
> {code}
>     case Status::Code::kPermissionDenied:
>       if (!stat.ToString().empty())
>         ReportError(EACCES, stat.ToString().c_str());
>       else
>         ReportError(EACCES, "Permission denied");
>       break;
> {code}
> should read
> {code}
>     case Status::Code::kPermissionDenied:
>       errnum = EACCES;
>       default_message = "Permission denied";
>       break;
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to