Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-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 11EA210A9F for ; Wed, 26 Nov 2014 04:56:53 +0000 (UTC) Received: (qmail 5938 invoked by uid 500); 26 Nov 2014 04:56:52 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 5891 invoked by uid 500); 26 Nov 2014 04:56:52 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 5879 invoked by uid 99); 26 Nov 2014 04:56:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2014 04:56:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of josh.elser@gmail.com designates 209.85.216.53 as permitted sender) Received: from [209.85.216.53] (HELO mail-qa0-f53.google.com) (209.85.216.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2014 04:56:46 +0000 Received: by mail-qa0-f53.google.com with SMTP id bm13so1423005qab.40 for ; Tue, 25 Nov 2014 20:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=0mU9ZBO9/fZGRdR13dsvP/VUTUl42XzzdRWDzp35LDE=; b=odY9jwr/CxZJ3hvNBenvJSPm47m7RLffMkIJ3UE/918n4++kbnIQZlxMdKGmp5ybYn e6yI1yOOa4GpGlO31gWNuVgFc7UDSlf4dFrsa82xpBuhf+62xcwDvBOrrH9OIOjEG4SZ USuZQ0DqlcrVbuWK+Ut7E4+PQJZWVAXo8mbGkgPu7P69dM5ODm8+yUISXJcoAMt7RNPU 4yKI/IgfLusmwuCc0zkmQiwNWT6zGcqxM8zZFws745WYinfdNT2FmsIyyQzW0iW5kb8W YbLQbZnMWEoi4OzL8TyKPDLC5DpTvodarM8GeeXolHRso2geywaaN0fDUghYGFyED9n0 BUWw== X-Received: by 10.224.122.15 with SMTP id j15mr31822944qar.68.1416977695357; Tue, 25 Nov 2014 20:54:55 -0800 (PST) Received: from HW10447.local (pool-71-166-48-231.bltmmd.fios.verizon.net. [71.166.48.231]) by mx.google.com with ESMTPSA id x17sm3108479qae.11.2014.11.25.20.54.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Nov 2014 20:54:54 -0800 (PST) Message-ID: <54755D1B.4020206@gmail.com> Date: Tue, 25 Nov 2014 23:54:51 -0500 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: dev Subject: Re: Fwd: [jira] [Resolved] (ACCUMULO-3167) Decouple MiniAccumuloCluster from integration test base class References: <5475588A.5080004@gmail.com> In-Reply-To: <5475588A.5080004@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Also, I did attempt to verify that running the ITs as before (mvn verify). File an issue if find any newly broken test. Josh Elser wrote: > Heads up for those that might not have been following this. > > I revamped how nearly all of our ITs work. In practice, it changed > relatively little in the tests themselves. If you want to know how to > use the changes I've made, check out the top-level TESTING file I > recently added. > > A brief tl;dr on how write new ITs (don't worry about getting this 100% > -- I'm happy to help port new tests you might write using the old > ConfigurableMacIT or SimpleMacIT classes), is that if you need Accumulo > available for a test, extend AccumuloClusterIT and use the > getConnector(), getCluster() and getClusterControl() methods on that > class to do what you need. Try to not rely on MiniAccumuloCluster(Impl) > specific methods. > > If there is something you specifically want to do with > MiniAccumuloCluster(Impl) or your test is doing something destructive or > otherwise unrecoverable to the instance, use JUnit's Assume to only run > your test when AccumuloClusterIT#getClusterType == ClusterType.MINI or > override AccumuloClusterIT#canRunTest. > > As always, ask questions. > > -------- Original Message -------- > Subject: [jira] [Resolved] (ACCUMULO-3167) Decouple MiniAccumuloCluster > from integration test base class > Date: Wed, 26 Nov 2014 04:25:13 +0000 (UTC) > From: Josh Elser (JIRA) > Reply-To: jira@apache.org > To: notifications@accumulo.apache.org > > > [ > https://issues.apache.org/jira/browse/ACCUMULO-3167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] > > Josh Elser resolved ACCUMULO-3167. > ---------------------------------- > Resolution: Fixed > > Submitted -- a couple of follow on tasks already identified. > >> Decouple MiniAccumuloCluster from integration test base class >> ------------------------------------------------------------- >> >> Key: ACCUMULO-3167 >> URL: https://issues.apache.org/jira/browse/ACCUMULO-3167 >> Project: Accumulo >> Issue Type: Improvement >> Components: mini, test >> Reporter: Josh Elser >> Assignee: Josh Elser >> Fix For: 1.6.2, 1.7.0 >> >> Time Spent: 1h 20m >> Remaining Estimate: 0h >> >> (apologies if I already had a ticket for this somewhere, I couldn't >> find it) >> Our integration tests are very nice and automated at the moment >> because we can use MiniAccumuloCluster to "provision" an Accumulo >> instance (or used a shared instance), and run a test against it. For >> the most part, this works well and provides an accurate test harness. >> Thus, to run integration tests, you need a sufficiently beefy machine >> since the same host will be running all of Accumulo as well as >> performing any client work. When resources are available to use, it >> would be nice to leverage them -- whether these are yarn, mesos, a >> vanila installation, etc. >> In addition to the additional computational power from using extra >> hardware, it also encourages us to use the public API as much as >> possible instead of relying on "hidden" impl methods in >> MiniAccumuloCluster. >> I propose making changes to the IT test base (AbstractMacIT, >> SimpleMacIT, ConfigurableMacIT) to add an extra step between them an >> test classes to allow "injection" of a more generic Accumulo "cluster" >> that is not associated with MAC. > > > > -- > This message was sent by Atlassian JIRA > (v6.3.4#6332)