Potential bug in ThreadPoolProfile.clone ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Potential bug in ThreadPoolProfile.clone ?

Andreas Becker
Hello,
 
can you please check the following code in the current version of Camel which we supect to be a bug:
 
Class: org.apache.camel.spi.ThreadPoolProfile

Method: clone

Problem: In the clone member poolSize is set to the value of maxPoolSize:
 
cloned.setMaxPoolSize(maxPoolSize);
cloned.setPoolSize(maxPoolSize);

If I see this correctly this bug came in with CAMEL-4244 on Aug 18, 2011.

Thank you very much,
best regards,

Andreas Becker




 
 
Reply | Threaded
Open this post in threaded view
|

Re: Potential bug in ThreadPoolProfile.clone ?

Claus Ibsen-2
Hi

Yes you are right. That is a little bug. I took the liberty of fixing
this on the 3.x branches.

On Tue, Aug 11, 2020 at 3:54 PM Andreas Becker <[hidden email]> wrote:

>
> Hello,
>
> can you please check the following code in the current version of Camel which we supect to be a bug:
>
> Class: org.apache.camel.spi.ThreadPoolProfile
>
> Method: clone
>
> Problem: In the clone member poolSize is set to the value of maxPoolSize:
>
> cloned.setMaxPoolSize(maxPoolSize);
> cloned.setPoolSize(maxPoolSize);
>
> If I see this correctly this bug came in with CAMEL-4244 on Aug 18, 2011.
>
> Thank you very much,
> best regards,
>
> Andreas Becker
>
>
>
>
>
>



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2