hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chang Li (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-12296) when setnetgrent returns 0 in linux, exception should be thrown
Date Tue, 04 Aug 2015 22:46:05 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-12296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chang Li updated HADOOP-12296:
------------------------------
    Attachment: HADOOP-12296.3.patch

[~jlowe] thanks for review! Actually after test .2 I found out that it didn't use the THROW
macro right. Uploaded .3 patch with right usage of THROW and also change some misleading naming
in the c file. I test that the .3 patch throw the right exception and also get logged correctly.
 Below is log I get for the test. {code}  Error getting users for netgroup @lasVegas: no netgroup
of this name is known or some other error occurred{code}

> when setnetgrent returns 0 in linux, exception should be thrown
> ---------------------------------------------------------------
>
>                 Key: HADOOP-12296
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12296
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Chang Li
>            Assignee: Chang Li
>         Attachments: HADOOP-12296.2.patch, HADOOP-12296.3.patch, HADOOP-12296.patch
>
>
> In linux, setnetgrent returns 0 in linux when something wrong is happen, such as out
of memory, unknown group, unavailable service, etc. So errorMessage should be set and exception
should be thrown



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message