Vladislav Pyatkov created IGNITE-21541:
------------------------------------------

             Summary: Avoid partition-operations pool when it not lead to 
starvation
                 Key: IGNITE-21541
                 URL: https://issues.apache.org/jira/browse/IGNITE-21541
             Project: Ignite
          Issue Type: Improvement
            Reporter: Vladislav Pyatkov


h3. Motivation
Chnaging pools and related parking/unparking lead to an increase in latency. 
Sometimes we can avoid extra pool changing, for example, by doing it for 
embedded operations.
{code:title=ReplicaManager#onReplicaMessageReceived}
ExecutorService stripeExecutor = 
ReplicationGroupStripes.stripeFor(request.groupId(), requestsExecutor);
stripeExecutor.execute(() -> handleReplicaRequest(request, senderConsistentId, 
correlationId));
{code}
This code changes a thread, even if it is not necessary.

h3. Definition of done
ReplicaManager should not switch threads if it does not lead to starvation (in 
my opinion, the splitting is needed only in the case of the network thread).



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

Reply via email to