lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-2367) DataImportHandler unit tests are very noisy
Date Wed, 16 Feb 2011 17:28:24 GMT

     [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Muir updated SOLR-2367:
------------------------------

    Attachment: SOLR-2367.patch

Thanks for the patch. I modified it, to just specify the absolute path to these directories.

this way we don't have to make any useless directories underneath the CWD.

Separately, as far as the exceptions, this is in the test TestErrorHandling, its 'expected
exceptions'. I tried to modify this test to use the 'expected exception' logic in SolrTestCaseJ4,
etc, but I could not make it work. 

I think this is because DIH throws DataImportHandlerExceptions (extends RuntimeException)
instead of ones that extend SolrException?


> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>         Attachments: SOLR-2367.patch, SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces
because dataimport.properties can't be written. This makes it hard to scan the output for
useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory
before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message