Return-Path: Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: (qmail 38247 invoked from network); 6 Mar 2010 01:44:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Mar 2010 01:44:05 -0000 Received: (qmail 99118 invoked by uid 500); 6 Mar 2010 01:43:50 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 99063 invoked by uid 500); 6 Mar 2010 01:43:50 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 99055 invoked by uid 99); 6 Mar 2010 01:43:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 01:43: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; Sat, 06 Mar 2010 01:43:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 451CF234C4CE for ; Sat, 6 Mar 2010 01:43:27 +0000 (UTC) Message-ID: <776547241.111931267839807282.JavaMail.jira@brutus.apache.org> Date: Sat, 6 Mar 2010 01:43:27 +0000 (UTC) From: "Scott Chen (JIRA)" To: mapreduce-dev@hadoop.apache.org Subject: [jira] Created: (MAPREDUCE-1568) TrackerDistributedCacheManager should do deleteLocalPath asynchronously 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 TrackerDistributedCacheManager should do deleteLocalPath asynchronously ----------------------------------------------------------------------- Key: MAPREDUCE-1568 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1568 Project: Hadoop Map/Reduce Issue Type: Improvement Affects Versions: 0.22.0 Reporter: Scott Chen Assignee: Scott Chen Fix For: 0.22.0 TrackerDistributedCacheManager.deleteCache() has been improved: MAPREDUCE-1302 makes TrackerDistributedCacheManager rename the caches in the main thread and then delete them in the background MAPREDUCE-1098 avoids global locking while do the renaming (renaming lots of directories can also takes a long time) But the deleteLocalCache is still in the main thread of TaskRunner.run(). So it will still slow down the task which triggers the deletion (originally this will blocks all tasks, but it is fixed by MAPREDUCE-1098). Other tasks do not wait for the deletion. The task which triggers the deletion should not wait for this either. TrackerDistributedCacheManager should do deleteLocalPath() asynchronously. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.