lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-2160) Unknown query type 'func'
Date Thu, 21 Oct 2010 14:41:19 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923461#action_12923461
] 

Uwe Schindler commented on SOLR-2160:
-------------------------------------

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message