lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (SOLR-1830) tests should be able to use RAMDirectory
Date Thu, 18 Mar 2010 05:22:27 GMT


Yonik Seeley commented on SOLR-1830:

Adding   <directoryFactory name="DirectoryFactory" class="solr.RAMDirectoryFactory"/>
to the example solrconfig.xml seems to work fine.  However adding it to the config file for
BasicFunctionalityTest causes it to fail.

This happens in the second test method of the class, so it's likely something isn't being
cleaned up.

    [junit] Testsuite: org.apache.solr.BasicFunctionalityTest
    [junit]     at
    [junit]     at org.apache.lucene.index.IndexWriter.&lt;init&gt;(
    [junit]     at org.apache.lucene.index.IndexWriter.&lt;init&gt;(
    [junit]     at org.apache.solr.update.SolrIndexWriter.&lt;init&gt;(
    [junit]     at org.apache.solr.update.UpdateHandler.createMainIndexWriter(
    [junit]     at org.apache.solr.update.DirectUpdateHandler2.openWriter(
    [junit]     at org.apache.solr.update.DirectUpdateHandler2.delete(
    [junit]     at org.apache.solr.update.processor.RunUpdateProcessor.processDelete(
    [junit]     at org.apache.solr.handler.XMLLoader.processDelete(
    [junit]     at org.apache.solr.handler.XMLLoader.processUpdate(
    [junit]     at org.apache.solr.handler.XmlUpdateRequestHandler.doLegacyUpdate(
    [junit]     at org.apache.solr.util.TestHarness.update(
    [junit]     at org.apache.solr.util.TestHarness.checkUpdateStatus(
    [junit]     at org.apache.solr.util.TestHarness.validateUpdate(
    [junit]     at org.apache.solr.util.AbstractSolrTestCase.checkUpdateU(
    [junit]     at org.apache.solr.util.AbstractSolrTestCase.assertU(
    [junit]     at org.apache.solr.BasicFunctionalityTest.testSomeStuff(

> tests should be able to use RAMDirectory
> ----------------------------------------
>                 Key: SOLR-1830
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>            Priority: Minor
> Tests should be able to use RAMDirectoryFactory.
> We probably want the ability to have ant switch between FS and RAM so both can be tested
(RAM normally, FS for nightly?)
> Some tests will need FS regardless, and those could use the same control mechanism as
ant, presumably a system property.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message