Return-Path: Delivered-To: apmail-hadoop-hdfs-commits-archive@minotaur.apache.org Received: (qmail 98121 invoked from network); 16 Nov 2009 21:39:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Nov 2009 21:39:01 -0000 Received: (qmail 41878 invoked by uid 500); 16 Nov 2009 21:39:01 -0000 Delivered-To: apmail-hadoop-hdfs-commits-archive@hadoop.apache.org Received: (qmail 41839 invoked by uid 500); 16 Nov 2009 21:39:01 -0000 Mailing-List: contact hdfs-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-commits@hadoop.apache.org Received: (qmail 41829 invoked by uid 99); 16 Nov 2009 21:39:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2009 21:39:00 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2009 21:38:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A1ABE238899C; Mon, 16 Nov 2009 21:38:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r880971 - in /hadoop/hdfs/trunk: CHANGES.txt src/test/aop/org/apache/hadoop/hdfs/TestFiPipelines.java Date: Mon, 16 Nov 2009 21:38:37 -0000 To: hdfs-commits@hadoop.apache.org From: cos@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091116213837.A1ABE238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cos Date: Mon Nov 16 21:38:37 2009 New Revision: 880971 URL: http://svn.apache.org/viewvc?rev=880971&view=rev Log: HDFS-774. Intermittent race condition in TestFiPipelines. Contributed by Konstantin Boudnik Modified: hadoop/hdfs/trunk/CHANGES.txt hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiPipelines.java Modified: hadoop/hdfs/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=880971&r1=880970&r2=880971&view=diff ============================================================================== --- hadoop/hdfs/trunk/CHANGES.txt (original) +++ hadoop/hdfs/trunk/CHANGES.txt Mon Nov 16 21:38:37 2009 @@ -55,6 +55,8 @@ HDFS-751. Fix TestCrcCorruption to pick up the correct datablocks to corrupt. (dhruba) + + HDFS-774. Intermittent race condition in TestFiPipelines (cos) Release 0.21.0 - Unreleased Modified: hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiPipelines.java URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiPipelines.java?rev=880971&r1=880970&r2=880971&view=diff ============================================================================== --- hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiPipelines.java (original) +++ hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiPipelines.java Mon Nov 16 21:38:37 2009 @@ -62,13 +62,10 @@ } @After - public void shutDownCluster() throws IOException { - if (fs != null) - fs.close(); - if (cluster != null) - cluster.shutdown(); + synchronized public void shutDownCluster() throws IOException { + if (cluster != null) cluster.shutdown(); } - + /** * Test initiates and sets actions created by injection framework. The actions * work with both aspects of sending acknologment packets in a pipeline. @@ -194,7 +191,8 @@ // It has to be done like that, because local version of shutDownCluster() // won't work, because it tries to close an instance of FileSystem too. // Which is where the waiting is happening. - if (cluster !=null ) cluster.shutdown(); + if (cluster !=null ) + shutDownCluster(); } catch (Exception e) { e.printStackTrace(); }