Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06E116BD1 for ; Fri, 10 Jun 2011 00:18:22 +0000 (UTC) Received: (qmail 92449 invoked by uid 500); 10 Jun 2011 00:18:21 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 92418 invoked by uid 500); 10 Jun 2011 00:18:21 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 92410 invoked by uid 99); 10 Jun 2011 00:18:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 00:18:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 00:18:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D193410BF6F for ; Fri, 10 Jun 2011 00:17:58 +0000 (UTC) Date: Fri, 10 Jun 2011 00:17:58 +0000 (UTC) From: "Bharath Mundlapudi (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <503289569.9199.1307665078855.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1601776911.9192.1307664598891.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2057) Wait time to terminate the threads causing unit tests to take longer time 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/HDFS-2057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bharath Mundlapudi updated HDFS-2057: ------------------------------------- Attachment: HDFS-2057-1.patch Attaching the patch. > Wait time to terminate the threads causing unit tests to take longer time > ------------------------------------------------------------------------- > > Key: HDFS-2057 > URL: https://issues.apache.org/jira/browse/HDFS-2057 > Project: Hadoop HDFS > Issue Type: Bug > Components: data-node > Affects Versions: 0.20.204.0, 0.20.205.0 > Reporter: Bharath Mundlapudi > Assignee: Bharath Mundlapudi > Fix For: 0.20.205.0 > > Attachments: HDFS-2057-1.patch > > > As a part of datanode process hang, this part of code was introduced in 0.20.204 to clean up all the waiting threads. > - try { > - readPool.awaitTermination(10, TimeUnit.SECONDS); > - } catch (InterruptedException e) { > - LOG.info("Exception occured in doStop:" + e.getMessage()); > - } > - readPool.shutdownNow(); > This was clearly meant for production, but all the unit tests uses minidfscluster and minimrcluster for shutdown which waits on this part of the code. Due to this, we saw increase in unit test run times. So removing this code. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira