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)

Reply via email to