[
https://issues.apache.org/jira/browse/SOLR-7270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370412#comment-14370412
]
Ramkumar Aiyengar commented on SOLR-7270:
-----------------------------------------
I understand. What about..
{code}
public class DynamicNamedThreadPoolExecutor extends ThreadPoolExecutor {
String namePrefix;
public DynamicNamedThreadPoolExecutor(int corePoolSize, int maximumPoolSize,
long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue,
String namePrefix) {
this.namePrefix = namePrefix;
super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue,
new DefaultSolrThreadFactory(namePrefix));
}
protected void beforeExecute(Thread t, Runnable r) {
..
t.setName(namePrefix + "|" + runnableName);
}
{code}
(btw, tried to apply and modify your patch but couldn't, is that against an
older 4x? i see refs to *Server which Alan modified to *Client a while back)
> Add URL of remote host in distrib update thread names to improve
> debuggability via stack traces.
> ------------------------------------------------------------------------------------------------
>
> Key: SOLR-7270
> URL: https://issues.apache.org/jira/browse/SOLR-7270
> Project: Solr
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Mark Miller
> Attachments: SOLR-7270.patch, SOLR-7270.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]