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

log message "created null" misleading

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Description

      Solr logs a message like this:

      INFO: created null: org.apache.solr.analysis.LowerCaseFilterFactory
      

      This sounds like the TokenFilter or Tokenizer were not created and a serious error. But it mealy means the component is not named. "null" is printed because the local variable "name" has the value null.

      This is misleading.

      If the text field type is not named, it should just print blank, rather than the word "null".

      I would suggest that a line in src/java/org/apache/solr/util/plugin/AbstractPluginLoader.java be changed to:

                log.info("created"+((name!=null)?(" "+name):"")+": " + plugin.getClass().getName() );
      

      from

                log.info("created "+name+": " + plugin.getClass().getName() );
      

        Attachments

          Activity

            People

            • Assignee:
              shalin Shalin Shekhar Mangar
              Reporter:
              tkurosaka Kuro Kurosaka
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified