[
https://issues.apache.org/jira/browse/SOLR-6643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated SOLR-6643:
---------------------------
Attachment: SOLR-6643.patch
Here's a patch that does a few things:
* adds 2 tests to CoreContainerCoreInitFailuresTest
** testJavaLangErrorFromHandlerOnStartup demonstrates that a new
ThrowErrorOnInitRequestHandler causes a correctly tracked coreInitFailure
** testJavaLangErrorFromSchemaOnStartup demonstrates that a new
ThrowErrorOnInitFieldType causes a correctly tracked coreInitFailure
*** this test currently fails
* SolrResourceLoader...
** now logs & re-throws any execptions
** has some refactoring to remove copy/paste code
*** nocommits noted here until more agressive testing is done.
I still don't understand why testJavaLangErrorFromSchemaOnStartup, and i won't
have much time to work on it in the near future -- but it may be a good idea to
commit this patch as is with an {{@Ignore}} on that test linking to a new
spin-off issue -- so that we can at least get te SolrResourceLoader logging in
place for people who run into problems like this .
> Core load silently aborted if missing schema has depenencies - LinkageErrors
> swollowed
> --------------------------------------------------------------------------------------
>
> Key: SOLR-6643
> URL: https://issues.apache.org/jira/browse/SOLR-6643
> Project: Solr
> Issue Type: Bug
> Components: Schema and Analysis
> Affects Versions: 4.10.1
> Reporter: Jan Høydahl
> Priority: Minor
> Labels: logging
> Attachments: SOLR-6643.patch
>
>
> *How to reproduce*
> # Start with standard collection1 config
> # Add a field type to schema using the ICU contrib, no need for a field
> {code:XML}
> <fieldType name="text_icu" class="solr.TextField">
> <analyzer><tokenizer class="solr.ICUTokenizerFactory"/></analyzer>
> </fieldType>
> {code}
> # {{cd example}}
> # {{mkdir solr/lib}}
> # {{cp ../contrib/analysis-extras/lucene-libs/lucene-analyzers-icu-4.10.1.jar
> solr/lib/}}
> # {{bin/solr -f}}
> # Core is not loaded, and no messages in log after this line
> {code}
> ... INFO org.apache.solr.schema.IndexSchema – [collection1] Schema
> name=example
> {code}
> 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()}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]