lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roman Chyla <roman.ch...@gmail.com>
Subject Re: Anyone else see this error when running unit tests?
Date Tue, 05 Feb 2013 02:18:44 GMT
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" <mike.schultz@gmail.com> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message