Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 A6E5F9807 for ; Thu, 16 Aug 2012 21:27:40 +0000 (UTC) Received: (qmail 10222 invoked by uid 500); 16 Aug 2012 21:27:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 10127 invoked by uid 500); 16 Aug 2012 21:27:39 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 9751 invoked by uid 99); 16 Aug 2012 21:27:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 21:27:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 359B22C5BEB for ; Thu, 16 Aug 2012 21:27:38 +0000 (UTC) Date: Fri, 17 Aug 2012 08:27:38 +1100 (NCT) From: "Colin Patrick McCabe (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <488830980.21112.1345152458220.JavaMail.jiratomcat@arcas> In-Reply-To: <171312319.16600.1345071878065.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HDFS-3808) fuse_dfs: postpone libhdfs intialization until after fork 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/HDFS-3808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colin Patrick McCabe updated HDFS-3808: --------------------------------------- Attachment: HDFS-3808.003.patch %Z -> %z > fuse_dfs: postpone libhdfs intialization until after fork > --------------------------------------------------------- > > Key: HDFS-3808 > URL: https://issues.apache.org/jira/browse/HDFS-3808 > Project: Hadoop HDFS > Issue Type: Bug > Components: fuse-dfs > Affects Versions: 2.2.0-alpha > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > Priority: Critical > Attachments: HDFS-3808.001.patch, HDFS-3808.002.patch, HDFS-3808.003.patch > > > {{libhdfs}} may create threads or initialize internal JNI data structures when it is used. So we should be careful to {{daemonize()}} before initializing {{libhdfs}}, not after. > Unfortunately, fuse_dfs is doing just this -- initializing libhdfs in its {{main}} function, prior to calling {{fuse_main}} which does a {{daemonize}}. > {{daemonize()}} does not preserve threads, because it is implemented by {{fork()}}ing and then continuing execution in the child and allowing the parent to {{exit()}}. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira