[ 
https://issues.apache.org/jira/browse/SOLR-11880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16334607#comment-16334607
 ] 

Shalin Shekhar Mangar commented on SOLR-11880:
----------------------------------------------

If we remove that exception then we're running blind. There would be no way to 
get the stack trace of the submitter when an actual exception happens inside 
the executor thread.

> Avoid creating new exceptions for every request made via 
> MDCAwareThreadPoolExecutor
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-11880
>                 URL: https://issues.apache.org/jira/browse/SOLR-11880
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Varun Thacker
>            Priority: Minor
>
> MDCAwareThreadPoolExecutor has this line in it's{{{execute}} method
>  
> {code:java}
> final Exception submitterStackTrace = new Exception("Submitter stack 
> trace");{code}
> This means that every call via the a thread pool will create this exception, 
> and only when it sees an error will it be used. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to