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

Incorrect access core.properties in IndexSchema.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.5
    • 4.5, 4.6, 6.0
    • None
    • 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

        1. SOLR-5281.patch
          1 kB
          Steven Rowe

        Activity

          People

            sarowe Steven Rowe
            johtani Jun Ohtani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: