[
https://issues.apache.org/jira/browse/SOLR-9983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15833153#comment-15833153
]
Mikhail Khludnev edited comment on SOLR-9983 at 1/21/17 9:31 PM:
-----------------------------------------------------------------
wow! we've got the new failure
http://jenkins.sarowe.net/job/Solr-tests-SOLR-5944/724/artifact/solr/build/solr-core/test/tests-failures.txt
[^tests-failures-TestManagedSchemaThreadSafety-724.txt]
{code}
2> NOTE: reproduce with: ant test -Dtestcase=TestManagedSchemaThreadSafety
-Dtests.method=testThreadSafety -Dtests.seed=9B595612EDC68859 -Dtests.slow=true
-Dtests.locale=ga -Dtests.timezone=America/Grenada -Dtests.asserts=true
-Dtests.file.encoding=ISO-8859-1
[01:47:40.461] ERROR 5.50s J5 |
TestManagedSchemaThreadSafety.testThreadSafety <<<
> Throwable #1: java.util.concurrent.ExecutionException:
java.lang.RuntimeException: org.apache.solr.common.SolrException: Error loading
solr config from solrconfig.xml
> at
__randomizedtesting.SeedInfo.seed([9B595612EDC68859:113424A3E593AAF]:0)
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> at
org.apache.solr.schema.TestManagedSchemaThreadSafety.testThreadSafety(TestManagedSchemaThreadSafety.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1713)
> at
com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:907)
> at
com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:943)
> at
com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:957)
> at
com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
> at
org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49)
> at
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
> at
org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
> at
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
> at
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
> at
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:367)
> at
com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:811)
> at
com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:462)
> at
com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:916)
> at
com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:802)
> at
com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:852)
> at
com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:863)
> at
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at
com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
> at
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
> at
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at
org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41)
> at
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
> at
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
> at
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at
org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
> at
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
> at
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
> at
org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54)
> at
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:367)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.RuntimeException:
org.apache.solr.common.SolrException: Error loading solr config from
solrconfig.xml
> at
org.apache.solr.schema.TestManagedSchemaThreadSafety.lambda$indexSchemaLoader$0(TestManagedSchemaThreadSafety.java:183)
> at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
> at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ... 1 more
> Caused by: org.apache.solr.common.SolrException: Error loading solr config
from solrconfig.xml
> at
org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:187)
> at
org.apache.solr.schema.TestManagedSchemaThreadSafety.lambda$indexSchemaLoader$0(TestManagedSchemaThreadSafety.java:176)
> ... 6 more
> Caused by: java.io.IOException: Error opening
/configs/managed-config/solrconfig.xml
> at
org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:113)
> at
org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:361)
> at org.apache.solr.core.Config.<init>(Config.java:120)
> at org.apache.solr.core.Config.<init>(Config.java:90)
> at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:202)
> at
org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:179)
> ... 7 more
> Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /configs/managed-config/solrconfig.xml
> at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)
> at
org.apache.solr.common.cloud.SolrZkClient$5.execute(SolrZkClient.java:322)
> at
org.apache.solr.common.cloud.SolrZkClient$5.execute(SolrZkClient.java:319)
> at
org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:60)
> at
org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:319)
> at
org.apache.solr.schema.TestManagedSchemaThreadSafety$1.answer(TestManagedSchemaThreadSafety.java:157)
> at
org.apache.solr.schema.TestManagedSchemaThreadSafety$1.answer(TestManagedSchemaThreadSafety.java:150)
> at
org.mockito.internal.stubbing.StubbedInvocationMatcher.answer(StubbedInvocationMatcher.java:35)
> at
org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:95)
> at
org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:32)
> at
org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:36)
> at
org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:41)
> at
org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:102)
> at
org.apache.solr.cloud.MockZkController$MockitoMock$1618364818.pathExists(Unknown
Source)
> at
org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:89)
> ... 12 more
2> 239943 INFO
(SUITE-TestManagedSchemaThreadSafety-seed#[9B595612EDC68859]-worker) [ ]
o.a.s.c.ZkTestServer connecting to 127.0.0.1:52352 52352
{code}
was (Author: mkhludnev):
wow! we've got the new failure
http://jenkins.sarowe.net/job/Solr-tests-SOLR-5944/724/artifact/solr/build/solr-core/test/tests-failures.txt
[^tests-failures-TestManagedSchemaThreadSafety-724.txt]
> 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
> Attachments: 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: [email protected]
For additional commands, e-mail: [email protected]