You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Marcus Olsson (JIRA)" <ji...@apache.org> on 2019/02/14 16:58:00 UTC

[jira] [Created] (CASSANDRA-15022) SEPExecutor local requests not triggered often

Marcus Olsson created CASSANDRA-15022:
-----------------------------------------

             Summary: SEPExecutor local requests not triggered often
                 Key: CASSANDRA-15022
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15022
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Marcus Olsson


Based on observations done in [CASSANDRA-14983|https://issues.apache.org/jira/browse/CASSANDRA-14983?focusedCommentId=16745238&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16745238] SEPExecutor#maybeExecuteImmediately() does not necessarily run tasks in the same thread often.

The logic [as it is today|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/concurrent/SEPExecutor.java#L166] basically requires another task to be in the work queue for it to trigger. One option to make it trigger more often could be to change the logic to:
{code:java}
if (workPermits == 0 || (takeTaskPermit && taskPermits == 0))
 return false;
{code}
So that we only check the taskPermits if we want to take a taskPermit.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org