You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andy Tolbert (Jira)" <ji...@apache.org> on 2024/09/13 15:06:00 UTC

[jira] [Created] (CASSANDRA-19922) Reduce lock held duration in ConcurrencyLimitingRequestThrottler

Andy Tolbert created CASSANDRA-19922:
----------------------------------------

             Summary: Reduce lock held duration in ConcurrencyLimitingRequestThrottler
                 Key: CASSANDRA-19922
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19922
             Project: Cassandra
          Issue Type: Improvement
          Components: Client/java-driver
            Reporter: Andy Tolbert
            Assignee: Jason Koch


This JIRA covers the java driver PR: https://github.com/apache/cassandra-java-driver/pull/1957

via:  [~jasonkoch]:

It might take some (small) time for callback handling when the throttler request proceeds to submission.

Before this change, the throttler proceed request will happen while holding the lock, preventing other tasks from proceeding when there is spare capacity and even preventing tasks from enqueuing until the callback completes.

By tracking the expected outcome, we can perform the callback outside of the lock. This means that request registration and submission can proceed even when a long callback is being processed.




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

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