Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-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 2D7E790BF for ; Wed, 15 Feb 2012 16:59:34 +0000 (UTC) Received: (qmail 85480 invoked by uid 500); 15 Feb 2012 16:59:33 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 85429 invoked by uid 500); 15 Feb 2012 16:59:32 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 85407 invoked by uid 99); 15 Feb 2012 16:59:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 16:59:32 +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 rcmuir@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-we0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 16:59:27 +0000 Received: by werf1 with SMTP id f1so1088618wer.35 for ; Wed, 15 Feb 2012 08:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=KEqaCu0RhgD78TXjbBIQ/NO+64ViLUaPRd5sxd56RQY=; b=fFHonAihedZZXKigdAacpHq5Vzg46MzzRnCAAk4BnRIFhBp1KQ7VSwJLGwuSpsuHhA FxefhpJj9PDZLSs6J0EpaoCkTsQIKp2sXWDM/bxeVApzil4AZdF+isPIwAu3L5gx10nT lwWc3zWuWrq5ybgA9EXy8TWLDTM4MMyuRNbCI= Received: by 10.180.7.231 with SMTP id m7mr11992816wia.3.1329325146104; Wed, 15 Feb 2012 08:59:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.160.73 with HTTP; Wed, 15 Feb 2012 08:58:46 -0800 (PST) In-Reply-To: <410103115.931329323837661.JavaMail.hudson@aegis> References: <1911174574.731329316692763.JavaMail.hudson@aegis> <410103115.931329323837661.JavaMail.hudson@aegis> From: Robert Muir Date: Wed, 15 Feb 2012 11:58:46 -0500 Message-ID: Subject: Re: [JENKINS] Lucene-Solr-tests-only-trunk-java7 - Build # 1738 - Still Failing To: dev@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think these are thread-safety problems related to using the same analysis engine instance? See prototype patch on https://issues.apache.org/jira/browse/LUCENE-3731, this is also causing some performance issues I think. Currently I think because no CAS is reused, its just slow and the possibility of thread problems is low. But by reusing CAS, these tests run much faster (and of course then fail). In the prototype patch as a workaround, i added this: + // nocommit: how can we get our 'own' analysis engine from the factory= ? + synchronized(analysisEngine) { + analysisEngine.process(cas); + } But I don't think we should do this... we should avoid the sync here. Instead of caching in the AEFactory maybe each tokenstream should get its own AnalysisEngine so there is no sync? Otherwise, I think we need to look at something like http://uima.apache.org/d/uimaj-2.4.0/apidocs/org/apache/uima/UIMAFramework.= html#produceAnalysisEngine%28org.apache.uima.resource.ResourceSpecifier,%20= int,%20int%29 which can process multiple requests simultaneously, but I'm not familiar enough with the UIMA apis to know whats best here. On Wed, Feb 15, 2012 at 11:37 AM, Apache Jenkins Server wrote: > Build: https://builds.apache.org/job/Lucene-Solr-tests-only-trunk-java7/1= 738/ > > 2 tests failed. > FAILED: =C2=A0org.apache.lucene.analysis.uima.UIMABaseAnalyzerTest.testRa= ndomStrings > > Error Message: > java.lang.AssertionError: Some threads threw uncaught exceptions! > > Stack Trace: > java.lang.RuntimeException: java.lang.AssertionError: Some threads threw = uncaught exceptions! > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase.tearD= ownInternal(LuceneTestCase.java:773) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase.acces= s$1000(LuceneTestCase.java:131) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase$Inter= nalSetupTeardownRule$1.evaluate(LuceneTestCase.java:600) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase$TestR= esultInterceptorRule$1.evaluate(LuceneTestCase.java:504) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase$Remem= berThreadRule$1.evaluate(LuceneTestCase.java:562) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCaseRunner= .runChild(LuceneTestCaseRunner.java:165) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCaseRunner= .runChild(LuceneTestCaseRunner.java:57) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase.check= UncaughtExceptionsAfter(LuceneTestCase.java:801) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase.tearD= ownInternal(LuceneTestCase.java:745) > > > FAILED: =C2=A0org.apache.lucene.analysis.uima.UIMATypeAwareAnalyzerTest.t= estRandomStrings > > Error Message: > java.lang.AssertionError: Some threads threw uncaught exceptions! > > Stack Trace: > java.lang.RuntimeException: java.lang.AssertionError: Some threads threw = uncaught exceptions! > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase.tearD= ownInternal(LuceneTestCase.java:773) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase.acces= s$1000(LuceneTestCase.java:131) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase$Inter= nalSetupTeardownRule$1.evaluate(LuceneTestCase.java:600) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase$TestR= esultInterceptorRule$1.evaluate(LuceneTestCase.java:504) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase$Remem= berThreadRule$1.evaluate(LuceneTestCase.java:562) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCaseRunner= .runChild(LuceneTestCaseRunner.java:165) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCaseRunner= .runChild(LuceneTestCaseRunner.java:57) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase.check= UncaughtExceptionsAfter(LuceneTestCase.java:801) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.util.LuceneTestCase.tearD= ownInternal(LuceneTestCase.java:745) > > > > > Build Log (for compile errors): > [...truncated 5211 lines...] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org --=20 lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org