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

Steve Rowe commented on SOLR-5281:
----------------------------------

Debugging 4.5, at the point in {{IndexSchema.java}} that Jun gave in the 
description, loader.coreProperties has:

{noformat}
{
  solr.core.config=solrconfig.xml, 
  
absoluteInstDir=/Users/sarowe/svn/lucene/dev/branches/lucene_solr_4_5/solr/example/solr/collection1/,
 
  solr.core.schema=schema.xml, 
  solr.core.transient=false, 
  
solr.core.instanceDir=/Users/sarowe/svn/lucene/dev/branches/lucene_solr_4_5/solr/example/solr/collection1,
 
  solr.core.dataDir=data/, 
  solr.core.loadOnStartup=true, 
  solr.core.name=collection1
} 
{noformat}

So Jun's analysis appears to be correct: coreProperties no longer contains 
"name", but rather "solr.core.name".
                
> Incorrect access core.properties in IndexSchema.java
> ----------------------------------------------------
>
>                 Key: SOLR-5281
>                 URL: https://issues.apache.org/jira/browse/SOLR-5281
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.5
>            Reporter: Jun Ohtani
>            Priority: Minor
>
> IndexSchema use core name for logging.
> But core name always output "[null] Schema..", the following.
> ---
>  "3814 [coreLoadExecutor-3-thread-1] INFO  org.apache.solr.schema.IndexSchema 
>  – Reading Solr Schema from schema.xml
> 3926 [coreLoadExecutor-3-thread-1] INFO  org.apache.solr.schema.IndexSchema  
> – [null] Schema name=example
> ---
> Maybe, property name pattern changed "name" to "solr.core.name" at SOLR-5162.
> --- IndexSchema.java
> ...
>   public static final String NAME = "name";
> ...
>       if (loader.getCoreProperties() != null) {
>         sb.append(loader.getCoreProperties().getProperty(NAME));
>       } else {
>         sb.append("null");
>       }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to