[
https://issues.apache.org/jira/browse/CASSANDRA-15022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benedict updated CASSANDRA-15022:
---------------------------------
Reviewers: Benedict
> 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
> Priority: Low
>
> 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: [email protected]
For additional commands, e-mail: [email protected]