accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roshan Punnoose (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1224) Custom Thread Pool in BatchScanner
Date Thu, 28 Mar 2013 19:33:16 GMT

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

Roshan Punnoose commented on ACCUMULO-1224:
-------------------------------------------

I did not go much further with the patch other than providing a way to add the ExecutorService
to the constructor of the TabletServerBatchReader. However, I do not know how to expose this
ability to a user of the API. There are a few ways (that I can think of), provide it in the
Connector as a separate createBatchScanner method, but that seems to muddy the API with implementation
details. Another way would be to have the Instance have a getThreadPool method that returns
null by default and could be overriden. Lastly, we could use a Configuration and set the ThreadPool
classname and create a new instance by reflection, that seems like it could cause more problems
than solve. Any ideas?
                
> Custom Thread Pool in BatchScanner
> ----------------------------------
>
>                 Key: ACCUMULO-1224
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1224
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: client
>            Reporter: Roshan Punnoose
>            Assignee: Billie Rinaldi
>            Priority: Minor
>         Attachments: threadPool.patch
>
>
> I would like the ability to supply my own ThreadPool(ExecutorService) when the BatchScanner
is created. This would give me the ability to throttle how many threads are created in an
application.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message