[
https://issues.apache.org/jira/browse/SOLR-15550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17383500#comment-17383500
]
Mike Drob commented on SOLR-15550:
----------------------------------
With the changes in my PR, the new output is much more verbose, and probably
more helpful.
{noformat}
org.apache.solr.common.util.ObjectReleaseTracker$ObjectTrackerException:
org.apache.solr.core.SolrCore
at
org.apache.solr.common.util.ObjectReleaseTracker.track(ObjectReleaseTracker.java:43)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:1090)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:928)
at
org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1433)
at
org.apache.solr.core.CoreContainer.lambda$load$10(CoreContainer.java:872)
at
com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:202)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:235)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.Exception: Submitter stack trace
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.execute(ExecutorUtil.java:204)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at
com.codahale.metrics.InstrumentedExecutorService.submit(InstrumentedExecutorService.java:90)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:865)
at org.apache.solr.util.TestHarness.<init>(TestHarness.java:183)
at org.apache.solr.util.TestHarness.<init>(TestHarness.java:155)
at org.apache.solr.util.TestHarness.<init>(TestHarness.java:161)
at org.apache.solr.util.TestHarness.<init>(TestHarness.java:111)
at org.apache.solr.SolrTestCaseJ4.createCore(SolrTestCaseJ4.java:858)
at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:848)
at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:709)
at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:698)
at
org.apache.solr.search.TestRangeQuery.beforeClass(TestRangeQuery.java:59)
{noformat}
> Record submitterStackTrace on ObjectReleaseTracker in tests
> -----------------------------------------------------------
>
> Key: SOLR-15550
> URL: https://issues.apache.org/jira/browse/SOLR-15550
> Project: Solr
> Issue Type: Test
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Tests
> Reporter: Mike Drob
> Priority: Major
>
> We currently collect the submitterStackTrace in MDCAwareThreadPool.execute
> and log it in case of exception. This is very useful, but doesn't propagate
> to objects gathered by ObjectReleaseTracker, so in case of failure we end up
> with logging like:
> {noformat}
> org.apache.solr.common.util.ObjectReleaseTracker$ObjectTrackerException:
> org.apache.solr.core.SolrCore
> at
> org.apache.solr.common.util.ObjectReleaseTracker.track(ObjectReleaseTracker.java:42)
> at org.apache.solr.core.SolrCore.<init>(SolrCore.java:1090)
> at org.apache.solr.core.SolrCore.<init>(SolrCore.java:928)
> at
> org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1433)
> at
> org.apache.solr.core.CoreContainer.lambda$load$10(CoreContainer.java:872)
> at
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:202)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:224)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> which doesn't help me very much in debugging why I have an unreleased
> SolrCore.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]