You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "David Mao (Jira)" <ji...@apache.org> on 2020/11/19 01:18:00 UTC

[jira] [Created] (KAFKA-10744) Listener and broker connection rate quota tests should use mock time

David Mao created KAFKA-10744:
---------------------------------

             Summary: Listener and broker connection rate quota tests should use mock time
                 Key: KAFKA-10744
                 URL: https://issues.apache.org/jira/browse/KAFKA-10744
             Project: Kafka
          Issue Type: Improvement
          Components: core
            Reporter: David Mao
            Assignee: David Mao


Currently the tests for these features use system time because {{ConnectionQuotas}} uses {{Object.wait()}} to block the acceptor when waiting for throttle or to wait for a connection slot. We can extend the {{Time}} interface to provide this functionality, while still being able to mock out any object waiting in unit tests.



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