You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2014/11/14 13:18:34 UTC

[jira] [Resolved] (CAMEL-8031) camel-netty maximumPoolSize option is ignored

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

Willem Jiang resolved CAMEL-8031.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.15.0

Applied the patch into camel master and camel-2.14.x branch.

> camel-netty maximumPoolSize option is ignored
> ---------------------------------------------
>
>                 Key: CAMEL-8031
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8031
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-netty
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.14.1, 2.15.0
>
>
> maximumPoolSize endpoint option of the Netty component is effectively ignored. We keep OrderedMemoryAwareThreadPoolExecutor in the NettyComponent#executorService field - it means that we keep, configure and start the executor on the component, not the endpoint level.
> Netty component is started before the endpoint is created, so NettyComponent#executorService will be always created with the default size (before endpoint will set the pool size on the configuration object).
> There is a workaround for this issue (changing configuration on the component level), but if we provide maximumPoolSize on the endpoint, then we should respect it.
> IMHO it is impossible to configure maximumPoolSize at the endpoint level and cache executor instance in the component at the same time. Maybe we should just remove that option from the documentation of the endpoint options as maximumPoolSize should be configured only on the component level?



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