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 8B02FE3AA for ; Mon, 7 Jan 2013 19:39:36 +0000 (UTC) Received: (qmail 63286 invoked by uid 500); 7 Jan 2013 19:39:35 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 63227 invoked by uid 500); 7 Jan 2013 19:39:35 -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 63215 invoked by uid 99); 7 Jan 2013 19:39:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2013 19:39:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of enis.soz@gmail.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qc0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2013 19:39:30 +0000 Received: by mail-qc0-f172.google.com with SMTP id b25so13144320qca.3 for ; Mon, 07 Jan 2013 11:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=KWVN1yMwlYp/Ii9Gxf23ovz1v/1NE8LpWhVStRRhkck=; b=NhphzZIRNI0BCy7I2MsTWUeliMmQYLCm6zaEK77N3o6tuhH4N8cD/xojzy33lhn615 dJfpX13fg6qkHemRC7MyouaysfGq/wvL027Hd7Lyi8gzaadC0ymt35eQLbYmhi1xy4k5 gcl2OusdxTP6oks+VSgWJMnzf9m3swHxC2LDl9oyedIkikJMoVvPYQrF56IisNUmGG9W CeIym4hf/n9nFKrDQoi2naYsWFqpscjBuzLARGGLZ86jTCjicMXHSaOVhm9RyjZ1AS/g wee8U6G+PIDxGM0UwCXHcj9l2g+aZrv/6d6snK8iXtyQeS5OuQamQkbVP60Y9FHJ03Iq Wpqw== Received: by 10.49.25.102 with SMTP id b6mr50427362qeg.27.1357587549485; Mon, 07 Jan 2013 11:39:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.61.225 with HTTP; Mon, 7 Jan 2013 11:38:49 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Enis_S=C3=B6ztutar?= Date: Mon, 7 Jan 2013 11:38:49 -0800 Message-ID: Subject: Re: A couple of unit tests may be using a data dir of /tmp/hbase-${user} To: "dev@hbase.apache.org" Content-Type: multipart/alternative; boundary=047d7b621ac8a37a0e04d2b7fbb1 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b621ac8a37a0e04d2b7fbb1 Content-Type: text/plain; charset=UTF-8 I've also noticed this before, but though we fixed all instances in 96. Instead of jenkins cleaning up, we should fix the tests themselves to not use the /tmp directory. I guess we can use the ResourceChecker to detect and fail those tests. Enis On Mon, Jan 7, 2013 at 11:32 AM, Stack wrote: > On Mon, Jan 7, 2013 at 10:00 AM, Andrew Purtell > wrote: > > > There was a failure of TestLocalHBaseCluster in > > https://builds.apache.org/job/PreCommit-HBASE-Build/3879 that I was able > > to > > reproduce locally, but what I think this means is a couple of tests are > > using a data dir of /tmp/hbase-${user}. > > > > I bumped HFileV2.MAX_MINOR_VERSION to 3, then ran tests. Later I changed > it > > back to 2 after review advice from Ted. TestLocalHBaseCluster then > started > > failing because some HFiles with a version of 2.3 remained in the > > filesystem under /tmp/hbase-${user} from earlier tests and could not be > > read in by current tests. The precommit builds don't save the test logs > so > > I can't confirm if what is going on up on Jenkins is the same thing, but > I > > suspect so. > > > > I'm not sure if JUnit or Surefire can support a global post test action, > > but I'll look into it. I want to test for the existence > > of /tmp/hbase-${user} after a unit test has run and if so fail it to flag > > it as an offender. > > > > > See > ./hbase-common/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java > > Is it hdfs that is putting the files in /tmp? > > St.Ack > --047d7b621ac8a37a0e04d2b7fbb1--