[
https://issues.apache.org/jira/browse/TINKERPOP-709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette closed TINKERPOP-709.
--------------------------------------
Fix Version/s: 3.5.0
Assignee: Stephen Mallette
Resolution: Done
> Consider Bounding Gremlin Pool Queue Size
> -----------------------------------------
>
> Key: TINKERPOP-709
> URL: https://issues.apache.org/jira/browse/TINKERPOP-709
> Project: TinkerPop
> Issue Type: Improvement
> Components: server
> Affects Versions: 3.0.2-incubating
> Reporter: Stephen Mallette
> Assignee: Stephen Mallette
> Priority: Major
> Fix For: 3.5.0
>
>
> Wonder if it's a good idea to make the queue size to the "gremlinPool"
> configurable and thus bounded.
> {code}
> final BlockingQueue<Runnable> queue = new ArrayBlockingQueue<>(queueSize);
> gremlinExecutorService = new ThreadPoolExecutor(n, n,
> 0L, TimeUnit.MILLISECONDS,
> queue);
> {code}
> If the queue exceeded {{queueSize}} it would throw:
> {{RejectedExecutionException}}. This approach would also provide another
> metric to capture/report: {{queue.size()}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)