You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Kevin Risden (Jira)" <ji...@apache.org> on 2022/11/18 18:20:00 UTC

[jira] [Commented] (SOLR-16553) SolrTestCaseJ4 solr.install.dir property not initialized

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

Kevin Risden commented on SOLR-16553:
-------------------------------------

Based on looking for `solr.install.dir` and SolrTestCaseJ4 - https://github.com/apache/solr/commit/16657ccab092 comes up potentially. This is related to SOLR-15921 and might have an affect? FYI [~janhoy]

> SolrTestCaseJ4  solr.install.dir property not initialized
> ---------------------------------------------------------
>
>                 Key: SOLR-16553
>                 URL: https://issues.apache.org/jira/browse/SOLR-16553
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ, Tests
>    Affects Versions: 9.1
>            Reporter: Bernd Wahlen
>            Priority: Minor
>
> i tried to upgrade solr-solrj + solr-test-framework from 9.0 -> 9.1
> i have some Testcases extending SolrTestCaseJ4 and initialized like this.
> With 9.1 they fail with solr.install.dir property not initialized (i fixed this adding the system property to every test class like below).
> Is this change intended? (there is no solr installation, just the test framework running on temporary dir@build server).
> {code:java}
>     @BeforeClass
>     public static void beforeClass() throws Exception {       
>         System.setProperty("solr.install.dir", "./");		//inserted to keep running with solrj-9.1
>         initCore("solrconfig.xml", "schema.xml", "./", "city_v2");
>         lrf.qtype = "/select";
>     }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org