Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 99912 invoked from network); 5 Aug 2009 03:51:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Aug 2009 03:51:29 -0000 Received: (qmail 38685 invoked by uid 500); 5 Aug 2009 03:51:37 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 38637 invoked by uid 500); 5 Aug 2009 03:51:37 -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 38627 invoked by uid 99); 5 Aug 2009 03:51:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 03:51:37 +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, 05 Aug 2009 03:51:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F307A234C044 for ; Tue, 4 Aug 2009 20:51:14 -0700 (PDT) Message-ID: <330726241.1249444274983.JavaMail.jira@brutus> Date: Tue, 4 Aug 2009 20:51:14 -0700 (PDT) From: "Vinod K V (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-825) JobClient completion poll interval of 5s causes slow tests in local mode In-Reply-To: <295575366.1249419254870.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-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739328#action_12739328 ] Vinod K V commented on MAPREDUCE-825: ------------------------------------- Now that we are doing this, shouldn't we also do something for the hard-coded sleep interval in monitorAndPrintJob() (JobClient.java +1294)? That might help in some test-cases too.. Regarding tests, you can change any of the current test cases to use a lower value for the introduced configuration and verify manually that the test time has decreased. I could see TestTaskFail using three instances of waitForCompletion() in a single test, may be you can change that test-case and see how it goes. > JobClient completion poll interval of 5s causes slow tests in local mode > ------------------------------------------------------------------------ > > Key: MAPREDUCE-825 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-825 > Project: Hadoop Map/Reduce > Issue Type: Bug > Reporter: Aaron Kimball > Assignee: Aaron Kimball > Priority: Minor > Attachments: completion-poll-interval.patch > > > The JobClient.NetworkedJob.waitForCompletion() method polls for job completion every 5 seconds. When running a set of short tests in pseudo-distributed mode, this is unnecessarily slow and causes lots of wasted time. When bandwidth is not scarce, setting the poll interval to 100 ms results in a 4x speedup in some tests. This interval should be parametrized to allow users to control the interval for testing purposes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.