Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10744

Listener and broker connection rate quota tests should use mock time

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • core
    • None

    Description

      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.

      Attachments

        Activity

          People

            david.mao David Mao
            david.mao David Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: