Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E369D11EBF for ; Wed, 4 Jun 2014 00:47:01 +0000 (UTC) Received: (qmail 27431 invoked by uid 500); 4 Jun 2014 00:47:01 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 27394 invoked by uid 500); 4 Jun 2014 00:47:01 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 27384 invoked by uid 99); 4 Jun 2014 00:47:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2014 00:47:01 +0000 Date: Wed, 4 Jun 2014 00:47:01 +0000 (UTC) From: "Lyuben Todorov (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6968) Reduce Unit Test Times Due to Schema Loading MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14017298#comment-14017298 ] Lyuben Todorov commented on CASSANDRA-6968: ------------------------------------------- I'll resubmit a patch with the nits and usage of {{MM#annoynceNewKeyspace(...)}} once CASSANDRA-7327 is committed, as for the imports the aim was to unify them, but for clarity of the patch I think I'll leave them as is and only add the new imports. > Reduce Unit Test Times Due to Schema Loading > -------------------------------------------- > > Key: CASSANDRA-6968 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6968 > Project: Cassandra > Issue Type: Test > Components: Tests > Reporter: Tyler Hobbs > Assignee: Lyuben Todorov > Priority: Minor > Fix For: 2.1.1 > > Attachments: trunk-6968-speedup-unittests.patch > > > Unit tests which extend SchemaLoader take about 6s longer to run than the others, on average. We could greatly reduce the time it takes to run the tests by improving this. > None of the tests require everything that SchemaLoader does. We should change SchemaLoader into a set of test utilities that are run as needed in {{\@BeforeClass}} and {{\@AfterClass}} methods. Additionally, instead of running a full cleanup, most tests could simply use a keyspace or column family with a unique name (class/method name or perhaps class/method name + timestamp). -- This message was sent by Atlassian JIRA (v6.2#6252)