[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12982349#action_12982349 ] Robert Muir commented on SOLR-2160: --- pretty sure this one is fixed? Haven't seen any problems like this in quite some time. 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 Attachments: SOLR-2160.patch 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12924345#action_12924345 ] Uwe Schindler commented on SOLR-2160: - bq. Grrr, I can't even run SolrInfoMBeanTest from by IDE. java.lang.AssertionError: there are at least 10 SolrInfoMBean that should be found in the classpath, found 0 Thats because the test only works if the class files are physically on disk and not in JAR file. And IDEs have own classloaders to serve classes directly from their debugger. 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12924346#action_12924346 ] Yonik Seeley commented on SOLR-2160: I'm starting to think this may be a classloader issue. A SolrCore can have it's own classloader... and the SolrInfoMBeanTest loads the classes (I think) in the parent classloader. 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12924357#action_12924357 ] Uwe Schindler commented on SOLR-2160: - Let's try it out? 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 Attachments: SOLR-2160.patch 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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; ListClass classes = new ArrayListClass(); 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923813#action_12923813 ] Simon Willnauer commented on SOLR-2160: --- Could we put @Ignore on the SolrInfoMBeanTest#testCallMBeanInfo() until this is fixed? I mean a stable build would be nice though :) simon 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923882#action_12923882 ] Robert Muir commented on SOLR-2160: --- Thanks for the reproducable case, Simon. Unfortunately, I don't think we should @Ignore this, this is a real bug. if you disable the instantiation itself (and just leave the Class.forName enabled), it still fails... 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923445#action_12923445 ] Yonik Seeley commented on SOLR-2160: I'm looping the tests on my ubuntu system now trying to reproduce this (solr tests now only take 2min!) 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923447#action_12923447 ] Robert Muir commented on SOLR-2160: --- I too find this test hard to reproduce. But, I think if we look at hudson logs it is all caused by SolrInfoMBeanTest. The problem is that now this test only loads up src/java things, so the concern would be that its a real static or similar problem. I wish we could come up with a better way than SolrInfoMBeanTest to find problems since it makes debugging *very difficult* 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923462#action_12923462 ] Robert Muir commented on SOLR-2160: --- bq. Its not instantiating. SolrMBean only loads the classes! I disagree... unless I'm completely wrong about what Class.newInstance() does! {noformat} for( Class clazz : classes ) { if( SolrInfoMBean.class.isAssignableFrom( clazz ) ) { try { SolrInfoMBean info = (SolrInfoMBean)clazz.newInstance(); //System.out.println( info.getClass() ); assertNotNull( info.getName() ); {noformat} 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923465#action_12923465 ] Uwe Schindler commented on SOLR-2160: - See above I changed my original comment before you posted your reply - sorry. It only instantiates few classes (which match the interface). Because of this I suggested at the end, to disable this instantiation temporarily. If it then does not fail, the bug is tracked to the instantiation. If it then also fails, you can be 10% sure that it is caused by static initialization. Sorry for incomplete comment at the beginning! 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2160) Unknown query type 'func'
[ https://issues.apache.org/jira/browse/SOLR-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923466#action_12923466 ] Robert Muir commented on SOLR-2160: --- bq. Because of this I suggested at the end, to disable this instantiation temporarily. This is a good idea for debugging. This is how i found it was meddling with TestReplicationHandler by only doing Class.forName(TestReplicationHandler) back when SolrInfoMBeanTest meddled with test classes too the difference with that one was that it was easier to reproduce... this func() one is tricky! 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org