Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 70B31187CC for ; Tue, 4 Aug 2015 13:57:05 +0000 (UTC) Received: (qmail 69458 invoked by uid 500); 4 Aug 2015 13:57:05 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 69402 invoked by uid 500); 4 Aug 2015 13:57:05 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 69388 invoked by uid 99); 4 Aug 2015 13:57:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 13:57:05 +0000 Date: Tue, 4 Aug 2015 13:57:05 +0000 (UTC) From: "Chang Li (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12296) when setnetgrent returns 0 in linux, exception should be thrown MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-12296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653674#comment-14653674 ] Chang Li commented on HADOOP-12296: ----------------------------------- [~aw] thanks for providing opinion. But I still think it's reasonable to thrown an exception because when setnetgrent returns 0 in linux it's not saying the netgroup is empty, but it's actually saying the passed netgroup name is invalid (misconfigured) or if any error occurred. > 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.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)