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

Mikhail Petrov updated IGNITE-15052:
------------------------------------
    Description: 
It is proposed to 
1. move the creation of thread pools that are shared across multiple Ignite 
processors to the PoolProcessor - now they are created in IgniitonEx
2. get thread pools instances through the PoolProcessor - now they are obtained 
through GridKernalContext

This helps to encapsulate the logic related to shared thread pools into a 
dedicated processor that is in charge of thread pool management. The 
implementation of this proposal will also allow to implement more reliable way 
to keep correct security context  for tasks that are asynchronously executed in 
thread pools.

The only questionable change associated with this proposal is that thread pools 
will be stopped earlier than before but tests shows no issues with it.

  was:
It is proposed to 
1. move the creation of thread pools that are shared across multiple Ignite 
processors to the PoolProcessor - now they are created in IgniitonEx
2. get thread pools instances through the PoolProcessor - now they are obtained 
through GridKernalKontext

This helps to encapsulate the logic related to shared thread pools into a 
dedicated processor that is in charge of thread pool management. The 
implementation of this proposal will also allow to implement more reliable way 
to keep correct security context  for tasks that are asynchronously executed in 
thread pools.

The only questionable change associated with this proposal is that thread pools 
will be stopped earlier than before but tests shows no issues with it.


> Move thread pools creation to PoolProcessor.
> --------------------------------------------
>
>                 Key: IGNITE-15052
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15052
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Mikhail Petrov
>            Assignee: Mikhail Petrov
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> It is proposed to 
> 1. move the creation of thread pools that are shared across multiple Ignite 
> processors to the PoolProcessor - now they are created in IgniitonEx
> 2. get thread pools instances through the PoolProcessor - now they are 
> obtained through GridKernalContext
> This helps to encapsulate the logic related to shared thread pools into a 
> dedicated processor that is in charge of thread pool management. The 
> implementation of this proposal will also allow to implement more reliable 
> way to keep correct security context  for tasks that are asynchronously 
> executed in thread pools.
> The only questionable change associated with this proposal is that thread 
> pools will be stopped earlier than before but tests shows no issues with it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to