Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 822 invoked from network); 18 Feb 2009 22:28:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 22:28:26 -0000 Received: (qmail 15543 invoked by uid 500); 18 Feb 2009 22:28:23 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 15324 invoked by uid 500); 18 Feb 2009 22:28:23 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 15313 invoked by uid 99); 18 Feb 2009 22:28:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 14:28:23 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 22:28:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E89A5234C4A8 for ; Wed, 18 Feb 2009 14:28:01 -0800 (PST) Message-ID: <1279275475.1234996081949.JavaMail.jira@brutus> Date: Wed, 18 Feb 2009 14:28:01 -0800 (PST) From: "George Porter (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-5164) Subclasses of ClusterMapReduceTestCase can't easily add new configuration parameters In-Reply-To: <490189238.1233716399548.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] George Porter updated HADOOP-5164: ---------------------------------- Status: Patch Available (was: Open) > Subclasses of ClusterMapReduceTestCase can't easily add new configuration parameters > ------------------------------------------------------------------------------------ > > Key: HADOOP-5164 > URL: https://issues.apache.org/jira/browse/HADOOP-5164 > Project: Hadoop Core > Issue Type: Bug > Components: test > Reporter: George Porter > Attachments: HADOOP-5164.1.patch, HADOOP-5164.2.patch, HADOOP-5164.patch > > > Currently there is not a clean way for subclasses of ClusterMapReduceTestCase to add to the JobConf used to start the cluster daemons. > The startCluster() method does take a Properties object that is added to the JobConf used to the start the daemons. However, startCluster() is called from JUnit inside the setUp() method, which sets this parameter to be null. > If you try to override setUp() in a subclass of ClusterMapReduceTestCase, then you won't be able to invoke the TestCase.setUp() ancestor without calling ClusterMapReduceTestCase's setUp() (which will pass in the null parameter). On the other hand, if you just call startCluster() within your test method, then you would be starting up a cluster that was already started. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.