hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lowe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12296) when setnetgrent returns 0 in linux, exception should be thrown
Date Mon, 02 Nov 2015 18:48:27 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985739#comment-14985739

Jason Lowe commented on HADOOP-12296:

bq. But for architecture of Solaris/Illumos, setnetgrent return 0 upon success.
Argh, looks like that is the case.  So helpful that the two architectures decided to do the
exact opposite on the return value.

I'm +1 for the .3 patch then, since at least Linux will log something when an error occurs.
 Will commit this tomorrow if there are no objections.

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

View raw message