You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2012/08/17 09:18:38 UTC

[jira] [Commented] (SLING-2563) when a thread pool is created without a label, the label should be generated using the class name requesting the thread pool

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

Felix Meschberger commented on SLING-2563:
------------------------------------------

Basically sounds like a good idea.

I am a bit worried about the hard-coded and unchecked array indices. But probably the stack trace will always contain a lot more than just three elements.
                
> when a thread pool is created without a label, the label should be generated using the class name requesting the thread pool
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-2563
>                 URL: https://issues.apache.org/jira/browse/SLING-2563
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons
>            Reporter: Justin Edelson
>         Attachments: SLING-2563.patch
>
>
> "anonymous" thread pools are hard to troubleshoot, so we shouldn't allow them :)
> If a class com.myco.FooImpl calls ThreadPoolManager.create(config) then the resulting thread pool's name should contain com.myco.FooImpl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira