[ 
https://issues.apache.org/jira/browse/STANBOL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279915#comment-13279915
 ] 

Peter Ansell commented on STANBOL-620:
--------------------------------------

After adding the following debugging line at the start of the for loop in 
testGetManagedIndexes:

            log.info("Index present: "+metadata.getIndexName());

I got the following results in the junit results:

1159 [main] INFO org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest 
- Index present: entityhub
1159 [main] INFO org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest 
- Index present: cache
1159 [main] INFO org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest 
- Index present: testIndexInitialisation_1337562614089

It appears that the testDefaultIndexInitialisation index is being created 
before testGetManagedIndexes runs, but only in some circumstances it seems. On 
other runs the following two lines are printed higher up in the log.

1052 [main] INFO org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest 
- Index present:entityhub
1052 [main] INFO org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest 
- Index present:cache


Is the ManagedSolrServerTest class setup incorrectly to rely on the tests being 
executed in a particular order? Is it possible to remove the 
testIndexInitialisation index to properly cleanup that test?
                
> Commons Solr Managed tests fail on second invocation
> ----------------------------------------------------
>
>                 Key: STANBOL-620
>                 URL: https://issues.apache.org/jira/browse/STANBOL-620
>             Project: Stanbol
>          Issue Type: Bug
>          Components: Commons
>    Affects Versions: 0.10.0-incubating
>         Environment: Maven 3.0.4
> OpenJDK-7
> Ubuntu 12.04
>            Reporter: Peter Ansell
>
> The following test fails on the second time trying to run mvn clean install 
> on the commons reactor after clearing the maven cache repository of all 
> org.apache.stanbol artifacts:
> testGetManagedIndexes(org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest)
> To reproduce clear the repository cache
> rm -rf ~/.m2/repository/org/apache/stanbol/
> cd stanbol/commons/
> mvn clean install (should fail on org.apache.stanbol.commons.opennlp due to 
> missing dependency, see STANBOL-588 )
> mvn clean install (should now fail on org.apache.stanbol.commons.solr.managed 
> when the tests passed fine the first time through)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to