[ 
https://issues.apache.org/jira/browse/IGNITE-22933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roman Puchkovskiy reassigned IGNITE-22933:
------------------------------------------

    Assignee: Roman Puchkovskiy

> Replace ThreadPoolExecutors with a corePoolSize equal to 0
> ----------------------------------------------------------
>
>                 Key: IGNITE-22933
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22933
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksandr Polovtsev
>            Assignee: Roman Puchkovskiy
>            Priority: Major
>              Labels: ignite-3
>
> Our codebase contains some call to the {{ThreadPoolExecutor}} constructor 
> with the following parameters:
> {code:java}
> new ThreadPoolExecutor(
>         0,
>         <some_value>,
>         <some_value>,
>         <some_value>,
>         new LinkedBlockingQueue<>(),
>         <some_value>
> )
> {code}
> The combination of "maxCorePoolSize" being equal to 0 and an unbounded queue 
> actually means that all tasks submitted to this thread pool will be executed 
> sequentially due to the internal behavior of {{ThreadPoolExecutor}}.
> All such places must be replaced with more sensible values, like a non-zero 
> {{corePoolSize}} and {{allowCoreThreadTimeOut}} set to {{true}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to