lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-3264) SolrResourceLoader logging about "Solr home set to" is very missleading/broken in multicore
Date Thu, 22 Mar 2012 02:07:26 GMT
SolrResourceLoader logging about "Solr home set to" is very missleading/broken in multicore
-------------------------------------------------------------------------------------------

                 Key: SOLR-3264
                 URL: https://issues.apache.org/jira/browse/SOLR-3264
             Project: Solr
          Issue Type: Bug
            Reporter: Hoss Man
            Assignee: Hoss Man


the SolrResourceLoader constructor has this bit of logging left over from the days before
multicore...

{noformat}
    log.info("Solr home set to '" + this.instanceDir + "'");
{noformat}

but this is confusing and missleading since there are N+1 SOlrResourceLoaders in a given solr
instance (1 for the CoreContainer, and N for the N cores) and only one of them is refering
to the *true* "Solr Home" dir, the others are refering to the *instanceDir* of the respective
cores.

For example, using the 3.5 example and running {{java -Dsolr.solr.home=multicore -jar start.jar}}
you'll see...

{noformat}
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: using system property solr.solr.home: multicore
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to 'multicore/'
Mar 21, 2012 7:02:46 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: using system property solr.solr.home: multicore
Mar 21, 2012 7:02:46 PM org.apache.solr.core.CoreContainer$Initializer initialize
INFO: looking for solr.xml: /home/hossman/lucene/lucene-3.5.0_tag/solr/example/multicore/solr.xml
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: using system property solr.solr.home: multicore
Mar 21, 2012 7:02:46 PM org.apache.solr.core.CoreContainer <init>
INFO: New CoreContainer: solrHome=multicore/ instance=108681753
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to 'multicore/'
Mar 21, 2012 7:02:46 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to 'multicore/core0/'

...lots of logs about initing core0...

INFO: registering core: core0
Mar 21, 2012 7:02:47 PM org.apache.solr.core.SolrCore registerSearcher
INFO: [core0] Registered new searcher Searcher@5dde45e2 main
Mar 21, 2012 7:02:47 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to 'multicore/core1/'
Mar 21, 2012 7:02:47 PM org.apache.solr.core.SolrConfig <init>

...lots of logs about initing core1...

Mar 21, 2012 7:02:47 PM org.apache.solr.core.CoreContainer register
INFO: registering core: core1
...
{noformat}

we should revamp/add some of the log messages from CoreContainer and SolrResourceLoader to
make it more clear what the one true solr home is, and when SolrresourceLoader is being used
for an instanceDir of a single core.

--
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

        

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


Mime
View raw message