Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 57266 invoked from network); 3 Mar 2010 06:21:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 06:21:57 -0000 Received: (qmail 89129 invoked by uid 500); 3 Mar 2010 06:21:50 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 89053 invoked by uid 500); 3 Mar 2010 06:21:50 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 89045 invoked by uid 99); 3 Mar 2010 06:21:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 06:21:50 +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; Wed, 03 Mar 2010 06:21:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5B1DA234C4C3 for ; Wed, 3 Mar 2010 06:21:27 +0000 (UTC) Message-ID: <1044843187.26571267597287372.JavaMail.jira@brutus.apache.org> Date: Wed, 3 Mar 2010 06:21:27 +0000 (UTC) From: "Amareshwari Sriramadasu (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Updated: (MAPREDUCE-927) Cleanup of task-logs should happen in TaskTracker instead of the Child In-Reply-To: <353529923.1251455879295.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/MAPREDUCE-927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amareshwari Sriramadasu updated MAPREDUCE-927: ---------------------------------------------- Attachment: patch-927-2.txt Thanks Ravi for the explanation. I have undone the change. bq. Shouldn't clearOldUserLogs() be done as part of constructor itself? No. Again for the same reason that the thread is a daemon thread and is constructed only once. bq. Rename the class to TaskLogsMonitor, so that we are consistent going forward with MAPREDUCE-1100. Renamed it to UserLogCleaner. bq. We should create some attempt dirs also in the joblog dir with appropriate permissions and verify the proper cleanup. All this code path is tested with proper permissions in TestTaskTrackerLocalization and TestLocalizationWIthLinuxTaskController. bq. Should TaskLogs section be changed to explicitly specify the new directory hierarchy? Did not do this. I don't think we want to publish the directory hierarchy for users in this jira. Patch incorporates almost all the review comments. > Cleanup of task-logs should happen in TaskTracker instead of the Child > ---------------------------------------------------------------------- > > Key: MAPREDUCE-927 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-927 > Project: Hadoop Map/Reduce > Issue Type: Sub-task > Components: security, tasktracker > Affects Versions: 0.21.0 > Reporter: Vinod K V > Assignee: Amareshwari Sriramadasu > Priority: Blocker > Fix For: 0.21.0 > > Attachments: patch-927-1.txt, patch-927-2.txt, patch-927.txt > > > Task logs' cleanup is being done in Child now. This is undesirable atleast for two reasons: 1) failures while cleaning up will affect the user's tasks, and 2) the task's wall time will get affected due to operations that TT actually should own. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.