[ 
https://issues.apache.org/jira/browse/SOLR-1239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723489#action_12723489
 ] 

Shalin Shekhar Mangar commented on SOLR-1239:
---------------------------------------------

Both MultiCoreEmbeddedTest and MergeIndexesEmbeddedTest fail because cores are 
being loaded from the wrong directory after SOLR-1214

This happens because the TestHarness creates a CoreContainer using the current 
working directory as the solrHome. Now these multicore tests call 
CoreContainer#load specifying a directory from which config is to be loaded. 
The failure happens when a core is loaded using solrHome (current working 
directory) in the CoreContainer#create method.

The CoreContainer#load needs to use loader.getInstanceDir instead of solrHome. 
In fact I think solrHome should be set in CoreContainer#load using 
loader.getInstanceDir to handle such cases.

> org.apache.solr.client.solrj.embedded.MultiCoreEmbeddedTest FAILED
> ------------------------------------------------------------------
>
>                 Key: SOLR-1239
>                 URL: https://issues.apache.org/jira/browse/SOLR-1239
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>
> this testcase fails

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

Reply via email to