Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A132E33B for ; Tue, 5 Feb 2013 02:19:16 +0000 (UTC) Received: (qmail 79603 invoked by uid 500); 5 Feb 2013 02:19:12 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 79552 invoked by uid 500); 5 Feb 2013 02:19:12 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 79544 invoked by uid 99); 5 Feb 2013 02:19:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 02:19:12 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of roman.chyla@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-la0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 02:19:07 +0000 Received: by mail-la0-f52.google.com with SMTP id fs12so5166665lab.25 for ; Mon, 04 Feb 2013 18:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=cCHAudCOIGsJ5ODUP+8O20wq1KP7NDA/OvcOB+woP+w=; b=GxRMjA2EoXbV8XGCBDfBJtIGoiS88lfuVAEkvm2heeZJ0yhmLmQNGAWji3zmMcQ1mG I2nNyn0kq47G6xxiaQnFRMTFWK5rYmxxQCePmffXIcjSjOti3B37fHiGOaKm1xs0joSm wXF1h+OScKWLBhxwd53AqpNb10Z/M7BzdHeY/ZCIuEtwOoGY1PrCrCYuwJKHvLDbwBEC vd1OlbzHaNdiic6xSkdqz3fExN/ubRxMZTjNlE+FcER2FDMDQkBcqmNU4FtiMeZrHugE s3bMfOuT0/fHB0IenEtzxn0qhUhqcJJWRlA3u3/XvyKDiaHDU7EZ3oD4e41yJsave8p4 0L/Q== MIME-Version: 1.0 X-Received: by 10.112.40.137 with SMTP id x9mr9014461lbk.71.1360030725132; Mon, 04 Feb 2013 18:18:45 -0800 (PST) Received: by 10.112.40.167 with HTTP; Mon, 4 Feb 2013 18:18:44 -0800 (PST) Received: by 10.112.40.167 with HTTP; Mon, 4 Feb 2013 18:18:44 -0800 (PST) In-Reply-To: <1360028867156-4038472.post@n3.nabble.com> References: <1360028867156-4038472.post@n3.nabble.com> Date: Mon, 4 Feb 2013 21:18:44 -0500 Message-ID: Subject: Re: Anyone else see this error when running unit tests? From: Roman Chyla To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=e0cb4efe29c84151f604d4f0d4f6 X-Virus-Checked: Checked by ClamAV on apache.org --e0cb4efe29c84151f604d4f0d4f6 Content-Type: text/plain; charset=UTF-8 Me too, it fails randomly with test classes. We use Solr4.0 for testing, no maven, only ant. --roman On 4 Feb 2013 20:48, "Mike Schultz" wrote: > Yes. Just today actually. I had some unit test based on > AbstractSolrTestCase which worked in 4.0 but in 4.1 they would fail > intermittently with that error message. The key to this behavior is found > by looking at the code in the lucene class: > TestRuleSetupAndRestoreClassEnv. > I don't understand it completely but there are a number of random code > paths > through there. The following helped me get around the problem, at least in > the short term. > > > @org.apache.lucene.util.LuceneTestCase.SuppressCodecs({"Lucene3x","Lucene40"}) > public class CoreLevelTest extends AbstractSolrTestCase { > > I also need to call this inside my setUp() method, in 4.0 this wasn't > required. > initCore("solrconfig.xml", "schema.xml", "/tmp/my-solr-home"); > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Anyone-else-see-this-error-when-running-unit-tests-tp4015034p4038472.html > Sent from the Solr - User mailing list archive at Nabble.com. > --e0cb4efe29c84151f604d4f0d4f6--