You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Mike Drob (Jira)" <ji...@apache.org> on 2021/07/21 18:09:00 UTC
[jira] [Resolved] (SOLR-15550) Record submitterStackTrace on
ObjectReleaseTracker in tests
[ https://issues.apache.org/jira/browse/SOLR-15550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Drob resolved SOLR-15550.
------------------------------
Fix Version/s: main (9.0)
Assignee: Mike Drob
Resolution: Fixed
> 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
> Assignee: Mike Drob
> Priority: Major
> Fix For: main (9.0)
>
> Attachments: SOLR-15550.patch
>
> Time Spent: 3h
> Remaining Estimate: 0h
>
> 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org