[ https://issues.apache.org/jira/browse/KAFKA-16323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17828304#comment-17828304 ]
Johnny Hsu commented on KAFKA-16323: ------------------------------------ I have added logs to observe and tried to verify some potential causes: # check whether it really enters the delayed remote fetch # check whether it really enters the onExpire() section # check whether it succeeds in marking the metrics All verified and works as expected. Thanks to [~showuon], I also tried to add @BeforeAll to the tear down function, which remove all metrics before the test. However it still failed. Need some more tries to find the root causes... > Failing test: fix testRemoteFetchExpiresPerSecMetric > ----------------------------------------------------- > > Key: KAFKA-16323 > URL: https://issues.apache.org/jira/browse/KAFKA-16323 > Project: Kafka > Issue Type: Bug > Components: core > Reporter: Johnny Hsu > Assignee: Johnny Hsu > Priority: Major > Labels: test-failure > > Refer to > [https://ci-builds.apache.org/job/Kafka/job/kafka/job/trunk/2685/testReport/junit/kafka.server/ReplicaManagerTest/Build___JDK_21_and_Scala_2_13___testRemoteFetchExpiresPerSecMetric__/] > This test is failing, and this ticket aims to address this -- This message was sent by Atlassian Jira (v8.20.10#820010)