[ https://issues.apache.org/jira/browse/KAFKA-8262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16862035#comment-16862035 ]
ASF GitHub Bot commented on KAFKA-8262: --------------------------------------- cadonna commented on pull request #6922: KAFKA-8262, KAFKA-8263: Fix flaky test `MetricsIntegrationTest` URL: https://github.com/apache/kafka/pull/6922 - Timeout occurred due to initial slow rebalancing. - Added code to wait until `KafkaStreams` instance is in state RUNNING to check registration of metrics and in state NOT_RUNNING to check deregistration of metrics. - I removed all other wait conditions, because they are not needed if `KafkaStreams` instance is in the right state. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Flaky Test MetricsIntegrationTest#testStreamMetric > -------------------------------------------------- > > Key: KAFKA-8262 > URL: https://issues.apache.org/jira/browse/KAFKA-8262 > Project: Kafka > Issue Type: Bug > Components: streams, unit tests > Affects Versions: 2.3.0 > Reporter: Matthias J. Sax > Assignee: Bruno Cadonna > Priority: Major > Labels: flaky-test > Fix For: 2.4.0 > > > [https://builds.apache.org/job/kafka-pr-jdk11-scala2.12/3900/testReport/junit/org.apache.kafka.streams.integration/MetricsIntegrationTest/testStreamMetric/] > {quote}java.lang.AssertionError: Condition not met within timeout 10000. > testTaskMetric -> Size of metrics of type:'commit-latency-avg' must be equal > to:5 but it's equal to 0 expected:<5> but was:<0> at > org.apache.kafka.test.TestUtils.waitForCondition(TestUtils.java:361) at > org.apache.kafka.streams.integration.MetricsIntegrationTest.testStreamMetric(MetricsIntegrationTest.java:228){quote} -- This message was sent by Atlassian JIRA (v7.6.3#76005)