Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4FE3ED6EC for ; Sat, 21 Jul 2012 08:43:38 +0000 (UTC) Received: (qmail 51353 invoked by uid 500); 21 Jul 2012 08:43:38 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 51277 invoked by uid 500); 21 Jul 2012 08:43:37 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 50987 invoked by uid 500); 21 Jul 2012 08:43:35 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 50968 invoked by uid 99); 21 Jul 2012 08:43:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2012 08:43:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 8A276141BF8 for ; Sat, 21 Jul 2012 08:43:34 +0000 (UTC) Date: Sat, 21 Jul 2012 08:43:34 +0000 (UTC) From: "Haitao Yao (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <370593219.85615.1342860214567.JavaMail.jiratomcat@issues-vm> In-Reply-To: <101488258.34381.1341999754762.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (PIG-2812) Spill InternalCachedBag into only 1 file 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/PIG-2812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419768#comment-13419768 ] Haitao Yao commented on PIG-2812: --------------------------------- well, the spilled files should have been cleared under the normal condition. But if your job failed, and the Tasktracker reuses the child java process, the OOM would happen. I really think spill to one file is better. > Spill InternalCachedBag into only 1 file > ---------------------------------------- > > Key: PIG-2812 > URL: https://issues.apache.org/jira/browse/PIG-2812 > Project: Pig > Issue Type: Bug > Components: data > Reporter: Haitao Yao > Fix For: 0.11 > > Attachments: aa.jpg > > > I encountered a reducer's OOM because of java.io.DeleteOnExitHook. And I found out that the InternalCachedBag creates a seperate tmp file, and the tmp files is deleted on exit. So the file delete hook caused the OOM. > Why not just hold the tmp file handle and spill only one tmp file? > Too many tmp files may block the tasktracker start process, if the tmp files are not cleaned on time and the tasktracker restarts at this specific time. -- 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