Return-Path: Delivered-To: apmail-hadoop-chukwa-dev-archive@minotaur.apache.org Received: (qmail 90049 invoked from network); 18 May 2009 03:52:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 May 2009 03:52:08 -0000 Received: (qmail 78090 invoked by uid 500); 18 May 2009 03:52:08 -0000 Delivered-To: apmail-hadoop-chukwa-dev-archive@hadoop.apache.org Received: (qmail 78073 invoked by uid 500); 18 May 2009 03:52:08 -0000 Mailing-List: contact chukwa-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-dev@hadoop.apache.org Received: (qmail 78063 invoked by uid 99); 18 May 2009 03:52:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 03:52:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 03:52:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CFCB729A0012 for ; Sun, 17 May 2009 20:51:45 -0700 (PDT) Message-ID: <2043265627.1242618705842.JavaMail.jira@brutus> Date: Sun, 17 May 2009 20:51:45 -0700 (PDT) From: "Ari Rabkin (JIRA)" To: chukwa-dev@hadoop.apache.org Subject: [jira] Reopened: (CHUKWA-229) ExecPlugin leaks a file descriptor In-Reply-To: <1205793881.1242110565557.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CHUKWA-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ari Rabkin reopened CHUKWA-229: ------------------------------- That fix didn't do the trick. We're still leaking. What's more, it's sporadic; it doesn't happen every execution. So I suspect it's a race condition somewhere. Instead of tracking it down immediately, I propose the following medium-term workaround: If exec adaptor detects that we're out of file handles, we stop the agent process and wait for watchdog to respawn it. We went to a lot of trouble to implement robust checkpointing; I figure we might as well rely on it here. > ExecPlugin leaks a file descriptor > ---------------------------------- > > Key: CHUKWA-229 > URL: https://issues.apache.org/jira/browse/CHUKWA-229 > Project: Hadoop Chukwa > Issue Type: Bug > Components: data collection > Reporter: Ari Rabkin > Assignee: Ari Rabkin > Attachments: fixExecFDLeak.patch > > > ExecPlugin never properly disposes of the subprocess's input fd. This means we run out of file descriptors eventually. > This only affects ExecAdaptor; if ExecPlugin is invoked by the inputtools framework, the process doens't stay running. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.