Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 38581 invoked from network); 29 Feb 2008 07:53:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 07:53:59 -0000 Received: (qmail 83981 invoked by uid 500); 29 Feb 2008 07:53:50 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 83941 invoked by uid 500); 29 Feb 2008 07:53:50 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 83896 invoked by uid 99); 29 Feb 2008 07:53:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2008 23:53:50 -0800 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; Fri, 29 Feb 2008 07:53:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 67037234C04D for ; Thu, 28 Feb 2008 23:52:53 -0800 (PST) Message-ID: <21846264.1204271573421.JavaMail.jira@brutus> Date: Thu, 28 Feb 2008 23:52:53 -0800 (PST) From: "Owen O'Malley (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-2790) TaskInProgress.hasSpeculativeTask is very inefficient In-Reply-To: <14988924.1202352789631.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Owen O'Malley updated HADOOP-2790: ---------------------------------- Status: Open (was: Patch Available) > TaskInProgress.hasSpeculativeTask is very inefficient > ----------------------------------------------------- > > Key: HADOOP-2790 > URL: https://issues.apache.org/jira/browse/HADOOP-2790 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Reporter: Owen O'Malley > Assignee: Owen O'Malley > Fix For: 0.16.1 > > Attachments: 2790-2.patch, 2790.patch > > > Each call to JobInProgress.findNewTask can call TaskInProgress.hasSpeculativeTask once per a task. Each call to hasSpeculativeTask calls System.getCurrentTimeMillis, which can result in hundreds of thousands of calls to getCurrentTimeMillis. Additionally, it calls TaskInProgress.isOnlyCommitPending, which calls .values() on the map from task id to host name and iterates through them to see if any of the tasks are in commit pending. It would be better to have a commit pending boolean flag in the TaskInProgress. It also looks like there are other opportunities here, but those jumped out at me. We should also look at this method in the profiler. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.