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

Core load silently aborted if missing schema has depenencies - LinkageErrors swollowed

    XMLWordPrintableJSON

Details

    Description

      How to reproduce

      1. Start with standard collection1 config
      2. Add a field type to schema using the ICU contrib, no need for a field
        <fieldType name="text_icu" class="solr.TextField">
          <analyzer><tokenizer class="solr.ICUTokenizerFactory"/></analyzer>
        </fieldType>
        
      3. cd example
      4. mkdir solr/lib
      5. cp ../contrib/analysis-extras/lucene-libs/lucene-analyzers-icu-4.10.1.jar solr/lib/
      6. bin/solr -f
      7. Core is not loaded, and no messages in log after this line
        ... INFO  org.apache.solr.schema.IndexSchema  – [collection1] Schema name=example
        

      Note that we did not add the dependency libs from analysis-extras/lib, so we'd expect a ClassNotFoundException, but some way the initialization of schema aborts silently. The ICUTokenizerFactory is instansiated by reflection and I suspect that some exception is swallowed in AbstractPluginLoader#create()

      Attachments

        1. SOLR-6643.patch
          16 kB
          Chris M. Hostetter
        2. SOLR-6643.patch
          16 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            janhoy Jan Høydahl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: