lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-2160) Unknown query type 'func'
Date Fri, 22 Oct 2010 10:10:19 GMT

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

Simon Willnauer commented on SOLR-2160:
---------------------------------------

FYI - I can reliably reproduce with running SolrInfoBeanTest first inthe same vm
{code}

--- build.xml	(revision 1025747)
+++ build.xml	(working copy)
@@ -475,7 +475,7 @@
         </fileset>
       </batchtest>
       <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">
-        <fileset dir="src/test" includes="**/${testcase}.java"/>
+        <fileset dir="src/test" includes="**/SolrInfoMBeanTest.java, **/${testcase}.java"/>
       </batchtest>
     </junit>
 
{code}

"ant test -Dtestcase=TestQueryTypes" will then fail and this fixes the problem. Its a hack
I know but it might help to find a solution.

{code}

Index: src/test/org/apache/solr/SolrInfoMBeanTest.java
===================================================================
--- src/test/org/apache/solr/SolrInfoMBeanTest.java	(revision 1025719)
+++ src/test/org/apache/solr/SolrInfoMBeanTest.java	(working copy)
@@ -42,6 +42,7 @@
    * a name, description, etc...
    */
   public void testCallMBeanInfo() throws Exception {
+    Object[] init = org.apache.solr.search.QParserPlugin.standardPlugins;
     List<Class> classes = new ArrayList<Class>();
     classes.addAll(getClassesForPackage(StandardRequestHandler.class.getPackage().getName()));
     classes.addAll(getClassesForPackage(SearchHandler.class.getPackage().getName()));
{code}

> 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