[ https://issues.apache.org/jira/browse/SOLR-9983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15843309#comment-15843309 ]
Steve Rowe edited comment on SOLR-9983 at 1/27/17 6:44 PM: ----------------------------------------------------------- My Jenkins had a failure: [http://jenkins.sarowe.net/job/Lucene-Solr-tests-master/9459/] (doesn't reproduce for me): {noformat} Checking out Revision 01878380226c5be6bfedc45b8fb6174de4181a7c (refs/remotes/origin/master) [...] [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestManagedSchemaThreadSafety -Dtests.method=testThreadSafety -Dtests.seed=932CA88E4A647823 -Dtests.slow=true -Dtests.locale=pl -Dtests.timezone=Brazil/Acre -Dtests.asserts=true -Dtests.file.encoding=UTF-8 [junit4] ERROR 4.28s J6 | TestManagedSchemaThreadSafety.testThreadSafety <<< [junit4] > Throwable #1: java.util.concurrent.ExecutionException: java.lang.RuntimeException: org.apache.solr.common.SolrException: Error loading solr config from solrconfig.xml [junit4] > at __randomizedtesting.SeedInfo.seed([932CA88E4A647823:966BCD699FBCAD5]:0) [junit4] > at java.util.concurrent.FutureTask.report(FutureTask.java:122) [junit4] > at java.util.concurrent.FutureTask.get(FutureTask.java:192) [junit4] > at org.apache.solr.schema.TestManagedSchemaThreadSafety.testThreadSafety(TestManagedSchemaThreadSafety.java:126) [junit4] > at java.lang.Thread.run(Thread.java:745) [junit4] > Caused by: java.lang.RuntimeException: org.apache.solr.common.SolrException: Error loading solr config from solrconfig.xml [junit4] > at org.apache.solr.schema.TestManagedSchemaThreadSafety.lambda$indexSchemaLoader$0(TestManagedSchemaThreadSafety.java:159) [junit4] > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [junit4] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) [junit4] > at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229) [junit4] > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [junit4] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [junit4] > ... 1 more [junit4] > Caused by: org.apache.solr.common.SolrException: Error loading solr config from solrconfig.xml [junit4] > at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:187) [junit4] > at org.apache.solr.schema.TestManagedSchemaThreadSafety.lambda$indexSchemaLoader$0(TestManagedSchemaThreadSafety.java:152) [junit4] > ... 6 more [junit4] > Caused by: java.lang.NullPointerException [junit4] > at org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:99) [junit4] > at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:361) [junit4] > at org.apache.solr.core.Config.<init>(Config.java:120) [junit4] > at org.apache.solr.core.Config.<init>(Config.java:90) [junit4] > at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:202) [junit4] > at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:179) [junit4] > ... 7 more [junit4] 2> 565162 INFO (SUITE-TestManagedSchemaThreadSafety-seed#[932CA88E4A647823]-worker) [ ] o.a.s.c.ZkTestServer connecting to 127.0.0.1:52297 52297 [junit4] 2> 565318 INFO (Thread-1704) [ ] o.a.s.c.ZkTestServer connecting to 127.0.0.1:52297 52297 [junit4] 2> 565318 INFO (SUITE-TestManagedSchemaThreadSafety-seed#[932CA88E4A647823]-worker) [ ] o.a.s.SolrTestCaseJ4 ###deleteCore [junit4] 2> NOTE: leaving temporary files on disk at: /var/lib/jenkins/jobs/Lucene-Solr-tests-master/workspace/solr/build/solr-core/test/J6/temp/solr.schema.TestManagedSchemaThreadSafety_932CA88E4A647823-001 [junit4] 2> NOTE: test params are: codec=CheapBastard, sim=RandomSimilarity(queryNorm=true): {}, locale=pl, timezone=Brazil/Acre [junit4] 2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 1.8.0_77 (64-bit)/cpus=16,threads=1,free=311373568,total=520093696 [junit4] 2> NOTE: All tests run in this JVM: [CdcrReplicationDistributedZkTest, CSVRequestHandlerTest, DocExpirationUpdateProcessorFactoryTest, FieldAnalysisRequestHandlerTest, HdfsTlogReplayBufferedWhileIndexingTest, DistribDocExpirationUpdateProcessorTest, TestMacros, SuggestComponentTest, TestDynamicFieldCollectionResource, TestBadConfig, TestSha256AuthenticationProvider, TestSolrCoreSnapshots, TestSolrCLIRunExample, WordBreakSolrSpellCheckerTest, JvmMetricsTest, TestHighlightDedupGrouping, TestShortCircuitedRequests, TestUseDocValuesAsStored, TestFieldCacheWithThreads, TestMiniSolrCloudCluster, TestSolrJ, TestExceedMaxTermLength, BlockJoinFacetRandomTest, MigrateRouteKeyTest, TestComplexPhraseQParserPlugin, CachingDirectoryFactoryTest, TestWriterPerf, DistributedSpellCheckComponentTest, TestStressRecovery, TestReplicationHandler, CloudExitableDirectoryReaderTest, DeleteInactiveReplicaTest, DistributedVersionInfoTest, SharedFSAutoReplicaFailoverTest, SharedFSAutoReplicaFailoverUtilsTest, SimpleCollectionCreateDeleteTest, TestConfigSetsAPIExclusivity, TestLeaderElectionWithEmptyReplica, TestRequestForwarding, TestTolerantUpdateProcessorRandomCloud, CoreSorterTest, HdfsDirectoryFactoryTest, HighlighterMaxOffsetTest, SolrGraphiteReporterTest, TestSchemaNameResource, ChangedSchemaMergeTest, DocValuesMissingTest, TestCollationFieldDocValues, TestManagedSchemaThreadSafety] [junit4] Completed [603/684 (2!)] on J6 in 4.57s, 1 test, 1 error <<< FAILURES! {noformat} was (Author: steve_rowe): My Jenkins had a failure: [http://jenkins.sarowe.net/job/Lucene-Solr-tests-master/9459/]: {noformat} [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestManagedSchemaThreadSafety -Dtests.method=testThreadSafety -Dtests.seed=932CA88E4A647823 -Dtests.slow=true -Dtests.locale=pl -Dtests.timezone=Brazil/Acre -Dtests.asserts=true -Dtests.file.encoding=UTF-8 [junit4] ERROR 4.28s J6 | TestManagedSchemaThreadSafety.testThreadSafety <<< [junit4] > Throwable #1: java.util.concurrent.ExecutionException: java.lang.RuntimeException: org.apache.solr.common.SolrException: Error loading solr config from solrconfig.xml [junit4] > at __randomizedtesting.SeedInfo.seed([932CA88E4A647823:966BCD699FBCAD5]:0) [junit4] > at java.util.concurrent.FutureTask.report(FutureTask.java:122) [junit4] > at java.util.concurrent.FutureTask.get(FutureTask.java:192) [junit4] > at org.apache.solr.schema.TestManagedSchemaThreadSafety.testThreadSafety(TestManagedSchemaThreadSafety.java:126) [junit4] > at java.lang.Thread.run(Thread.java:745) [junit4] > Caused by: java.lang.RuntimeException: org.apache.solr.common.SolrException: Error loading solr config from solrconfig.xml [junit4] > at org.apache.solr.schema.TestManagedSchemaThreadSafety.lambda$indexSchemaLoader$0(TestManagedSchemaThreadSafety.java:159) [junit4] > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [junit4] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) [junit4] > at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229) [junit4] > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [junit4] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [junit4] > ... 1 more [junit4] > Caused by: org.apache.solr.common.SolrException: Error loading solr config from solrconfig.xml [junit4] > at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:187) [junit4] > at org.apache.solr.schema.TestManagedSchemaThreadSafety.lambda$indexSchemaLoader$0(TestManagedSchemaThreadSafety.java:152) [junit4] > ... 6 more [junit4] > Caused by: java.lang.NullPointerException [junit4] > at org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:99) [junit4] > at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:361) [junit4] > at org.apache.solr.core.Config.<init>(Config.java:120) [junit4] > at org.apache.solr.core.Config.<init>(Config.java:90) [junit4] > at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:202) [junit4] > at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:179) [junit4] > ... 7 more [junit4] 2> 565162 INFO (SUITE-TestManagedSchemaThreadSafety-seed#[932CA88E4A647823]-worker) [ ] o.a.s.c.ZkTestServer connecting to 127.0.0.1:52297 52297 [junit4] 2> 565318 INFO (Thread-1704) [ ] o.a.s.c.ZkTestServer connecting to 127.0.0.1:52297 52297 [junit4] 2> 565318 INFO (SUITE-TestManagedSchemaThreadSafety-seed#[932CA88E4A647823]-worker) [ ] o.a.s.SolrTestCaseJ4 ###deleteCore [junit4] 2> NOTE: leaving temporary files on disk at: /var/lib/jenkins/jobs/Lucene-Solr-tests-master/workspace/solr/build/solr-core/test/J6/temp/solr.schema.TestManagedSchemaThreadSafety_932CA88E4A647823-001 [junit4] 2> NOTE: test params are: codec=CheapBastard, sim=RandomSimilarity(queryNorm=true): {}, locale=pl, timezone=Brazil/Acre [junit4] 2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 1.8.0_77 (64-bit)/cpus=16,threads=1,free=311373568,total=520093696 [junit4] 2> NOTE: All tests run in this JVM: [CdcrReplicationDistributedZkTest, CSVRequestHandlerTest, DocExpirationUpdateProcessorFactoryTest, FieldAnalysisRequestHandlerTest, HdfsTlogReplayBufferedWhileIndexingTest, DistribDocExpirationUpdateProcessorTest, TestMacros, SuggestComponentTest, TestDynamicFieldCollectionResource, TestBadConfig, TestSha256AuthenticationProvider, TestSolrCoreSnapshots, TestSolrCLIRunExample, WordBreakSolrSpellCheckerTest, JvmMetricsTest, TestHighlightDedupGrouping, TestShortCircuitedRequests, TestUseDocValuesAsStored, TestFieldCacheWithThreads, TestMiniSolrCloudCluster, TestSolrJ, TestExceedMaxTermLength, BlockJoinFacetRandomTest, MigrateRouteKeyTest, TestComplexPhraseQParserPlugin, CachingDirectoryFactoryTest, TestWriterPerf, DistributedSpellCheckComponentTest, TestStressRecovery, TestReplicationHandler, CloudExitableDirectoryReaderTest, DeleteInactiveReplicaTest, DistributedVersionInfoTest, SharedFSAutoReplicaFailoverTest, SharedFSAutoReplicaFailoverUtilsTest, SimpleCollectionCreateDeleteTest, TestConfigSetsAPIExclusivity, TestLeaderElectionWithEmptyReplica, TestRequestForwarding, TestTolerantUpdateProcessorRandomCloud, CoreSorterTest, HdfsDirectoryFactoryTest, HighlighterMaxOffsetTest, SolrGraphiteReporterTest, TestSchemaNameResource, ChangedSchemaMergeTest, DocValuesMissingTest, TestCollationFieldDocValues, TestManagedSchemaThreadSafety] [junit4] Completed [603/684 (2!)] on J6 in 4.57s, 1 test, 1 error <<< FAILURES! {noformat} > TestManagedSchemaThreadSafety.testThreadSafety() failures > --------------------------------------------------------- > > Key: SOLR-9983 > URL: https://issues.apache.org/jira/browse/SOLR-9983 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: Schema and Analysis > Affects Versions: master (7.0) > Reporter: Steve Rowe > Assignee: Mikhail Khludnev > Fix For: 6.5, master (7.0) > > Attachments: SOLR-9983-connection-loss-retry.patch, SOLR-9983.patch, > tests-failures-TestManagedSchemaThreadSafety-724.txt > > > I set up a Jenkins job to hammer all tests on the {{jira/solr-5944}} branch, > and at least four times this test failed (none of the seeds reproduce for > me): [http://jenkins.sarowe.net/job/Solr-tests-SOLR-5944/155/], > [http://jenkins.sarowe.net/job/Solr-tests-SOLR-5944/167/], > [http://jenkins.sarowe.net/job/Solr-tests-SOLR-5944/106/], > [http://jenkins.sarowe.net/job/Solr-tests-SOLR-5944/332/]. My email search > didn't turn up any failures on ASF or Policeman Jenkins. Here's the output > from one of the above runs: > {noformat} > [junit4] 2> NOTE: reproduce with: ant test > -Dtestcase=TestManagedSchemaThreadSafety -Dtests.method=testThreadSafety > -Dtests.seed=3DB2B79301AA806B -Dtests.slow=true -Dtests.locale=lt > -Dtests.timezone=Asia/Anadyr -Dtests.asserts=true > -Dtests.file.encoding=US-ASCII > [junit4] ERROR 4.37s J4 | > TestManagedSchemaThreadSafety.testThreadSafety <<< > [junit4] > Throwable #1: java.util.concurrent.ExecutionException: > java.lang.RuntimeException: org.apache.solr.common.SolrException: Error > loading solr config from solrconfig.xml > [junit4] > at > __randomizedtesting.SeedInfo.seed([3DB2B79301AA806B:A7F8A3CBD235329D]:0) > [junit4] > at > java.util.concurrent.FutureTask.report(FutureTask.java:122) > [junit4] > at > java.util.concurrent.FutureTask.get(FutureTask.java:192) > [junit4] > at > org.apache.solr.schema.TestManagedSchemaThreadSafety.testThreadSafety(TestManagedSchemaThreadSafety.java:126) > [junit4] > at java.lang.Thread.run(Thread.java:745) > [junit4] > Caused by: java.lang.RuntimeException: > org.apache.solr.common.SolrException: Error loading solr config from > solrconfig.xml > [junit4] > at > org.apache.solr.schema.TestManagedSchemaThreadSafety.lambda$indexSchemaLoader$0(TestManagedSchemaThreadSafety.java:159) > [junit4] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > [junit4] > at > java.util.concurrent.FutureTask.run(FutureTask.java:266) > [junit4] > at > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229) > [junit4] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > [junit4] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [junit4] > ... 1 more > [junit4] > Caused by: org.apache.solr.common.SolrException: Error > loading solr config from solrconfig.xml > [junit4] > at > org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:187) > [junit4] > at > org.apache.solr.schema.TestManagedSchemaThreadSafety.lambda$indexSchemaLoader$0(TestManagedSchemaThreadSafety.java:152) > [junit4] > ... 6 more > [junit4] > Caused by: java.lang.NullPointerException > [junit4] > at > org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:99) > [junit4] > at > org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:361) > [junit4] > at org.apache.solr.core.Config.<init>(Config.java:120) > [junit4] > at org.apache.solr.core.Config.<init>(Config.java:90) > [junit4] > at > org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:202) > [junit4] > at > org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:179) > [junit4] > ... 7 more > {noformat} > Looks to me like this is a test bug: the test mocks {{ZkController}}, but the > mock returns null for (the uninitialized {{cc}} returned by) > {{getCoreContainer()}}, which is called when the ZK session expires in > {{ZkSolrResourceLoader.openResource()}}. The NPE is triggered when > {{isShutdown()}} is called on the null core container: > {code:java|title=ZkSolrResourceLoader.java} > 97: } catch (KeeperException.SessionExpiredException e) { > 98: exception = e; > 99: if (!zkController.getCoreContainer().isShutDown()) { > 100: // Retry in case of session expiry > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org