[
https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923461#action_12923461
]
Uwe Schindler edited comment on SOLR-2160 at 10/21/10 10:43 AM:
----------------------------------------------------------------
Its not always instantiating. Mostly, SolrMBean only loads the classes! So only
statics are initialized. And that should be able to be done in random order.
Especially could optimizers in the JVM do this (this is even allowed in the
JLS). SolrMBean only instantiates classes with default ctor that implement this
interface (this is a bug, you are right). But this problem seems to be more a
static initializer bug.
To track this, we can temporarily disable the instantiation part of SolrMBean
and only do the Class.forName() calls. If it then still fails its a real bug.
If it does not fail then, the reason is SolrMBean. In all other cases, the
static initializers run by Class.forName() use wrong assumptions!
was (Author: thetaphi):
Its not instantiating. SolrMBean only loads the classes! So only statics
are initialized. And that should be able to be done in random order. Especially
could optimizers in the JVM do this (this is even allowed in the JLS).
SolrMBean only instantiates classes with default ctor that implement this
interface (this is a bug, you are right). But this problem seems to be more a
static initializer bug.
To track this, we can temporarily disable the instantiation part of SolrMBean
and only do the Class.forName() calls. If it then still fails its a real bug.
If it does not fail then, the reason is SolrMBean. In all other cases, the
static initializers run by Class.forName() use wrong assumptions!
> Unknown query type 'func'
> -------------------------
>
> Key: SOLR-2160
> URL: https://issues.apache.org/jira/browse/SOLR-2160
> Project: Solr
> Issue Type: Test
> Components: Build
> Affects Versions: 3.1, 4.0
> Environment: Hudson
> Reporter: Robert Muir
> Fix For: 3.1, 4.0
>
>
> Several test methods in TestTrie failed in hudson, with errors such as this:
> Caused by: org.apache.solr.common.SolrException: Unknown query type 'func'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]