Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F46A9C44 for ; Wed, 5 Oct 2011 20:14:07 +0000 (UTC) Received: (qmail 90315 invoked by uid 500); 5 Oct 2011 19:14:07 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 90293 invoked by uid 500); 5 Oct 2011 19:14:07 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 90285 invoked by uid 99); 5 Oct 2011 19:14:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 19:14:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ghelmling@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-wy0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 19:14:02 +0000 Received: by wyf22 with SMTP id 22so2749283wyf.14 for ; Wed, 05 Oct 2011 12:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1tU4sfOlOud4gw2vG+0vnjeLMduswsth6IGV3IsGdAU=; b=Lwpf4hLYQ4cuPyr2AhOTw9BblNQuJaD2NGB8e7KMzUXJ6o8NIigZTlIrh/ACZ786Hz FutPVJMFde7HI8xE51fOnEmlKz8l+vmuPRuGkWAsbuS5aDeUXDFHfjHI23knOJdJPjVv wzP8kW7EOgCRqaE2FbmnovjuzXOukqMv9m0kg= MIME-Version: 1.0 Received: by 10.216.229.38 with SMTP id g38mr3449444weq.36.1317842021028; Wed, 05 Oct 2011 12:13:41 -0700 (PDT) Received: by 10.216.25.77 with HTTP; Wed, 5 Oct 2011 12:13:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 5 Oct 2011 12:13:40 -0700 Message-ID: Subject: Re: TestHLog hanging in trunk From: Gary Helmling To: dev@hbase.apache.org Cc: Roman Shaposhnik Content-Type: multipart/alternative; boundary=0016364997318892c404ae9201b1 --0016364997318892c404ae9201b1 Content-Type: text/plain; charset=ISO-8859-1 Something else seems to be going on. With the call to shutdownMiniCluster() the first run of TestHLog passes. But when I try running in a loop, the second run always seems to hang. Thread dump here: http://pastebin.com/f18Wfa3T On Wed, Oct 5, 2011 at 12:00 PM, Todd Lipcon wrote: > +CC Roman who worked on the patch identified by the bisect. > > Roman, does Gary's analysis make sense to you? > > -Todd > > On Wed, Oct 5, 2011 at 11:55 AM, Gary Helmling > wrote: > > Somehow TestHLog was never actually shutting down the mini-cluster? > > > > The following change lets the test exit successfully: > > > > diff --git > > a/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java > > b/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java > > index 663b318..13f821c 100644 > > --- > a/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java > > +++ > b/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java > > @@ -54,6 +54,7 @@ import > > org.apache.hadoop.hdfs.server.namenode.LeaseManager; > > import org.apache.hadoop.io.SequenceFile; > > import org.apache.log4j.Level; > > import org.junit.After; > > +import org.junit.AfterClass; > > import org.junit.Before; > > import org.junit.BeforeClass; > > import org.junit.Test; > > @@ -120,6 +121,11 @@ public class TestHLog { > > oldLogDir = new Path(hbaseDir, ".oldlogs"); > > dir = new Path(hbaseDir, getName()); > > } > > + @AfterClass > > + public static void tearDownAfterClass() throws Exception { > > + TEST_UTIL.shutdownMiniCluster(); > > + } > > + > > private static String getName() { > > // TODO Auto-generated method stub > > return "TestHLog"; > > > > > > On Wed, Oct 5, 2011 at 11:23 AM, Gary Helmling > wrote: > > > >> I've noticed that TestHLog is currently hanging in trunk (haven't > checked > >> other branches). Oddly the tests actually complete, but then the test > hangs > >> in teardown. > >> > >> Seems to be something in the server shutdown hooks. git bisect tracks > down > >> the hang to this commit: > >> > >> commit 9c195c7ef350a932a9901a2069b96694d202c675 > >> Author: Michael Stack > >> Date: Fri Sep 30 21:45:20 2011 +0000 > >> > >> HBASE-4209 The HBase hbase-daemon.sh SIGKILLs master when stopping > it > >> > >> git-svn-id: > https://svn.apache.org/repos/asf/hbase/trunk@117784913f79535-47bb-0310-9956-ffa450edef68 > >> > >> > >> Anyone else noticed this on TestHLog or other tests? I think it may be > >> behind some of our odd test cleanup issues up in Jenkins. > >> > >> --gh > >> > >> > > > > > > -- > Todd Lipcon > Software Engineer, Cloudera > --0016364997318892c404ae9201b1--