Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2795D916A for ; Fri, 21 Oct 2011 20:52:56 +0000 (UTC) Received: (qmail 80157 invoked by uid 500); 21 Oct 2011 20:52:56 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 80111 invoked by uid 500); 21 Oct 2011 20:52:55 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 79989 invoked by uid 99); 21 Oct 2011 20:52:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2011 20:52:55 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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, 21 Oct 2011 20:52:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3FD3E315645 for ; Fri, 21 Oct 2011 20:50:33 +0000 (UTC) Date: Fri, 21 Oct 2011 20:50:33 +0000 (UTC) From: "Ted Yu (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <808611904.3197.1319230233262.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <526214083.15759.1319125391083.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4634) "test.build.data" property overused leading to write data at the wrong place 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/HBASE-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133048#comment-13133048 ] Ted Yu commented on HBASE-4634: ------------------------------- TestHFileBlock#testBlockHeapSize is fixed by addendum to HBASE-4219 Please refresh your workspace. > "test.build.data" property overused leading to write data at the wrong place > ---------------------------------------------------------------------------- > > Key: HBASE-4634 > URL: https://issues.apache.org/jira/browse/HBASE-4634 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 0.92.0 > Environment: all > Reporter: nkeywal > Assignee: nkeywal > Attachments: 2011020_4634_all.patch, 20111020_4639_TestStoreFile.patch, 20111021_4634_all.v2.patch > > > "test.build.data" is overloaded in HBase.At the beginning, it's the "Default parent directory for test output.", but then it's rewritten to be the directory itself in functions like HBaseTestingUtility#startMiniDFSCluster > It seems that this value is already used by MiniDFS (i.e. outside of HBase): > "Name is as it is because mini dfs has hard-codings to put test data here." > As it is today, there is at least a bug in HBaseTestingUtility: > {noformat} > public void initTestDir() { > if (System.getProperty(TEST_DIRECTORY_KEY) == null) { > clusterTestBuildDir = setupClusterTestBuildDir(); > System.setProperty(TEST_DIRECTORY_KEY, clusterTestBuildDir.getPath()); > } > } > {noformat} > if you set a value for "test.build.data", the test dir will be the parent directory and not a temp subdir, leading to issues as multiple tests will end-ups in the same (bad) directory. This function is barely used today, hence it's not visible, but I would like to use it in some new code. > A possible fix is to remove the check for null and continue with the overloading, but I don't think it would be a big issue to create a new key(like "test.build.data.rootdirectory") specific to the root directory and to use "test.build.data" only to communicate with MiniDFS. Feedback welcome. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira