Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5281

Incorrect access core.properties in IndexSchema.java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5, 4.6, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      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"); }

        Attachments

          Activity

            People

            • Assignee:
              steve_rowe Steve Rowe
              Reporter:
              jun_o Jun Ohtani
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: