You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Koorosh Vakhshoori <kv...@gmail.com> on 2012/07/19 01:17:57 UTC

Custom JUnit tests based on SolrTestCaseJ4 fails intermittently.

Hi,
  I am trying out the Solr Alpha release against some custom and Junit codes
I have written. I am seeing my custom JUnit tests failing once in a while.
The tests are based on Solr Junit test code where they are extending
SolrTestCaseJ4. My guess is the Randomized Testing coming across some issue
here. However not sure what the source of the problem is. I noticed the
value of 'codec' is null for failed cases, but I am setting the
luceneMatchVersion value in solrconfig.xml as bellow:
  
   
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
 
  I am including the test outputs for both scenarios here.
  
  Any help or pointer appreciated.
  
  Thanks,
  
  Koorosh
  

Here is the output of Junit test which failes when running it from Eclipse:
  
NOTE: test params are: codec=null, sim=null, locale=null, timezone=(null)
NOTE: Windows 7 6.1 amd64/Sun Microsystems Inc. 1.6.0_21
(64-bit)/cpus=4,threads=1,free=59414480,total=63242240
NOTE: All tests run in this JVM: [TestDocsHandler]
Jul 18, 2012 3:55:25 PM com.carrotsearch.randomizedtesting.RandomizedRunner
runSuite
SEVERE: Panic: RunListener hook shouldn't throw exceptions.
java.lang.NullPointerException
	at
org.apache.lucene.util.RunListenerPrintReproduceInfo.reportAdditionalFailureInfo(RunListenerPrintReproduceInfo.java:159)
	at
org.apache.lucene.util.RunListenerPrintReproduceInfo.testRunFinished(RunListenerPrintReproduceInfo.java:104)
	at
com.carrotsearch.randomizedtesting.RandomizedRunner.runSuite(RandomizedRunner.java:634)
	at
com.carrotsearch.randomizedtesting.RandomizedRunner.access$400(RandomizedRunner.java:132)
	at
com.carrotsearch.randomizedtesting.RandomizedRunner$2.run(RandomizedRunner.java:551)

Here is the output for the same test where it is successful:
	
24 T11 oas.SolrTestCaseJ4.initCore ####initCore
Creating dataDir:
C:\Users\xuser\AppData\Local\Temp\solrtest-TestDocsHandler-1342651924084
43 T11 oasc.SolrResourceLoader.locateSolrHome JNDI not configured for solr
(NoInitialContextEx)
43 T11 oasc.SolrResourceLoader.locateSolrHome using system property
solr.solr.home: solr-gold/solr-extraction
45 T11 oasc.SolrResourceLoader.<init> new SolrResourceLoader for deduced
Solr Home: 'solr-gold/solr-extraction\'
284 T11 oasc.SolrConfig.<init> Using Lucene MatchVersion: LUCENE_40
429 T11 oasc.SolrConfig.<init> Loaded SolrConfig: solrconfig-dow.xml
434 T11 oass.IndexSchema.readSchema Reading Solr Schema
443 T11 oass.IndexSchema.readSchema Schema name=SolvNet Common core
522 T11 oass.IndexSchema.readSchema default search field in schema is
indexed_content
524 T11 oass.IndexSchema.readSchema query parser default operator is AND
525 T11 oass.IndexSchema.readSchema unique key field: id
616 T11 oasc.SolrResourceLoader.locateSolrHome JNDI not configured for solr
(NoInitialContextEx)
617 T11 oasc.SolrResourceLoader.locateSolrHome using system property
solr.solr.home: solr-gold/solr-extraction
617 T11 oasc.SolrResourceLoader.<init> new SolrResourceLoader for directory:
'solr-gold/solr-extraction\'
618 T11 oasc.CoreContainer.<init> New CoreContainer 994682772
642 T11 oasc.SolrCore.<init> [collection1] Opening new SolrCore at
solr-gold/solr-extraction\,
dataDir=C:\Users\koo\AppData\Local\Temp\solrtest-TestDocsHandler-1342651924084\
642 T11 oasc.SolrCore.<init> JMX monitoring not detected for core:
collection1
648 T11 oasc.SolrCore.getNewIndexDir WARNING New index directory detected:
old=null
new=C:\Users\koo\AppData\Local\Temp\solrtest-TestDocsHandler-1342651924084\index/
648 T11 oasc.SolrCore.initIndex WARNING [collection1] Solr index directory
'C:\Users\koo\AppData\Local\Temp\solrtest-TestDocsHandler-1342651924084\index'
doesn't exist. Creating new index...
742 T11 oasc.SolrDeletionPolicy.onCommit SolrDeletionPolicy.onCommit:
commits:num=1
		commit{dir=MockDirWrapper(org.apache.lucene.store.RAMDirectory@44023756
lockFactory=org.apache.lucene.store.NativeFSLockFactory@21ed5459),segFN=segments_1,generation=1,filenames=[segments_1]
743 T11 oasc.SolrDeletionPolicy.updateCommits newest commit = 1
871 T11 oasc.RequestHandlers.initHandlersFromConfig created /update/javabin:
solr.BinaryUpdateRequestHandler
875 T11 oasc.RequestHandlers.initHandlersFromConfig created standard:
solr.StandardRequestHandler
878 T11 oasc.RequestHandlers.initHandlersFromConfig created /update:
solr.XmlUpdateRequestHandler
878 T11 oasc.RequestHandlers.initHandlersFromConfig created /admin/:
org.apache.solr.handler.admin.AdminHandlers
886 T11 oasc.RequestHandlers.initHandlersFromConfig created /update/extract:
com.synopsys.ies.solr.backend.handler.extraction.SolvNetExtractingRequestHandler
891 T11 oasc.RequestHandlers.initHandlersFromConfig WARNING Multiple
requestHandler registered to the same name: standard ignoring:
org.apache.solr.handler.StandardRequestHandler
892 T11 oasc.RequestHandlers.initHandlersFromConfig created standard:
solr.SearchHandler
892 T11 oasc.RequestHandlers.initHandlersFromConfig created employee:
solr.SearchHandler
892 T11 oasc.RequestHandlers.initHandlersFromConfig created customer:
solr.SearchHandler
897 T11 oashl.XMLLoader.init xsltCacheLifetimeSeconds=60
900 T11 oash.BinaryUpdateRequestHandler.init WARNING Using deprecated class:
BinaryUpdateRequestHandler -- replace with UpdateRequestHandler
901 T11 oashl.XMLLoader.init xsltCacheLifetimeSeconds=60
901 T11 oash.XmlUpdateRequestHandler.init WARNING Using deprecated class:
XmlUpdateRequestHandler -- replace with UpdateRequestHandler
915 T11 oass.SolrIndexSearcher.<init> Opening Searcher@e96b5c2 main
915 T11 oass.SolrIndexSearcher.<init> WARNING WARNING: Directory impl does
not support setting indexDir: org.apache.lucene.store.MockDirectoryWrapper
928 T11 oasu.CommitTracker.<init> Hard AutoCommit: disabled
929 T11 oasu.CommitTracker.<init> Soft AutoCommit: disabled
944 T11 oashc.HttpShardHandlerFactory.getParameter Setting socketTimeout to:
0
945 T11 oashc.HttpShardHandlerFactory.getParameter Setting urlScheme to:
http://
945 T11 oashc.HttpShardHandlerFactory.getParameter Setting connTimeout to: 0
945 T11 oashc.HttpShardHandlerFactory.getParameter Setting
maxConnectionsPerHost to: 20
945 T11 oashc.HttpShardHandlerFactory.getParameter Setting corePoolSize to:
0
945 T11 oashc.HttpShardHandlerFactory.getParameter Setting maximumPoolSize
to: 2147483647
945 T11 oashc.HttpShardHandlerFactory.getParameter Setting maxThreadIdleTime
to: 5
946 T11 oashc.HttpShardHandlerFactory.getParameter Setting sizeOfQueue to:
-1
946 T11 oashc.HttpShardHandlerFactory.getParameter Setting fairnessPolicy
to: false
951 T11 oascsi.HttpClientUtil.createClient Creating new http client,
config:maxConnectionsPerHost=20&maxConnections=10000&socketTimeout=0&connTimeout=0&retry=false
1463 T11 oasc.CoreContainer.register registering core: collection1
1463 T12 oasc.SolrCore.registerSearcher [collection1] Registered new
searcher Searcher@e96b5c2 main{StandardDirectoryReader(segments_1:1)}
1465 T11 oas.SolrTestCaseJ4.initCore ####initCore end
1474 T11 oas.SolrTestCaseJ4.setUp ###Starting testMultiValueProductIndexing
ASYNC  NEW_CORE C0 name=collection1 org.apache.solr.core.SolrCore@4de6f0ef
1500 T11 C0 oascsi.HttpClientUtil.createClient Creating new http client,
config:maxConnections=200&maxConnectionsPerHost=8
1546 T11 C0 oasu.DirectUpdateHandler2.deleteAll [collection1] REMOVING ALL
DOCUMENTS FROM INDEX
1549 T11 C0 oasc.SolrDeletionPolicy.onInit SolrDeletionPolicy.onInit:
commits:num=1
		commit{dir=MockDirWrapper(org.apache.lucene.store.RAMDirectory@44023756
lockFactory=org.apache.lucene.store.NativeFSLockFactory@21ed5459),segFN=segments_1,generation=1,filenames=[segments_1]
1549 T11 C0 oasc.SolrDeletionPolicy.updateCommits newest commit = 1
1550 T11 C0 UPDATE [collection1] webapp=null path=null params={}
{deleteByQuery=*:*} 0 59
1572 T11 C0 oasu.DirectUpdateHandler2.commit start
commit{flags=0,version=0,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false}
1573 T11 C0 oasc.SolrDeletionPolicy.onCommit SolrDeletionPolicy.onCommit:
commits:num=2
		commit{dir=MockDirWrapper(org.apache.lucene.store.RAMDirectory@44023756
lockFactory=org.apache.lucene.store.NativeFSLockFactory@21ed5459),segFN=segments_1,generation=1,filenames=[segments_1]
		commit{dir=MockDirWrapper(org.apache.lucene.store.RAMDirectory@44023756
lockFactory=org.apache.lucene.store.NativeFSLockFactory@21ed5459),segFN=segments_2,generation=2,filenames=[segments_2]
1573 T11 C0 oasc.SolrDeletionPolicy.updateCommits newest commit = 2
1575 T11 C0 oass.SolrIndexSearcher.<init> Opening Searcher@12183272 main
1575 T11 C0 oass.SolrIndexSearcher.<init> WARNING WARNING: Directory impl
does not support setting indexDir:
org.apache.lucene.store.MockDirectoryWrapper
1576 T11 C0 oasu.DirectUpdateHandler2.commit end_commit_flush
1578 T12 oasc.SolrCore.registerSearcher [collection1] Registered new
searcher Searcher@12183272 main{StandardDirectoryReader(segments_2:2)}
1578 T11 C0 UPDATE [collection1] webapp=null path=null params={} {commit=} 0
8

--
View this message in context: http://lucene.472066.n3.nabble.com/Custom-JUnit-tests-based-on-SolrTestCaseJ4-fails-intermittently-tp3995852.html
Sent from the Solr - User mailing list archive at Nabble.com.