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

Andrew Mashenkov commented on IGNITE-3812:
------------------------------------------

{noformat}
final IgniteConfiguration cfg = new IgniteConfiguration();

cfg.setLocalHost("127.0.0.1");
cfg.setManagementThreadPoolSize(-1);

Ignition.start(cfg);
{noformat}
The code above results in IllegalArgumentException:
{noformat}
java.lang.IllegalArgumentException
        at 
java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1307)
        at 
java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1230)
        at 
org.apache.ignite.thread.IgniteThreadPoolExecutor.<init>(IgniteThreadPoolExecutor.java:185)
        at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1672)
{noformat}

> Add executors configuration validation.
> ---------------------------------------
>
>                 Key: IGNITE-3812
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3812
>             Project: Ignite
>          Issue Type: Task
>    Affects Versions: 1.6
>            Reporter: Andrew Mashenkov
>
> An IllegalArgumentException will be thrown from one of java standard 
> implementation of ThreadPool without any information about wrong parameter  
> if incorrect value provided (e.g. if set  threadPoolSize <= 0). So, it is not 
> obvious which executor service initialization has failed.
> See IgnitionEx.IgniteNamedInstance class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to