[ https://issues.apache.org/jira/browse/KAFKA-8459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853480#comment-16853480 ]
Guozhang Wang commented on KAFKA-8459: -------------------------------------- Yes, the usual fix is to use mock time instead of system time in unit tests. > Flakey test BaseQuotaTest#testThrottledRequest > ---------------------------------------------- > > Key: KAFKA-8459 > URL: https://issues.apache.org/jira/browse/KAFKA-8459 > Project: Kafka > Issue Type: Bug > Reporter: Boyang Chen > Priority: Major > > [https://builds.apache.org/job/kafka-pr-jdk11-scala2.12/5151/consoleFull] > *12:14:29* kafka.api.UserQuotaTest > testThrottledRequest STARTED*12:14:57* > kafka.api.UserQuotaTest.testThrottledRequest failed, log available in > /home/jenkins/jenkins-slave/workspace/kafka-pr-jdk11-scala2.12/core/build/reports/testOutput/kafka.api.UserQuotaTest.testThrottledRequest.test.stdout*12:14:57* > *12:14:57* kafka.api.UserQuotaTest > testThrottledRequest FAILED*12:14:57* > org.scalatest.exceptions.TestFailedException: Consumer throttle metric not > updated: avg=0.0 max=0.0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)