dongnuo123 commented on code in PR #19904: URL: https://github.com/apache/kafka/pull/19904#discussion_r2140187447
########## core/src/test/scala/integration/kafka/api/AuthorizerIntegrationTest.scala: ########## @@ -3076,6 +3076,29 @@ class AuthorizerIntegrationTest extends AbstractAuthorizerIntegrationTest { sendAndReceiveRegexHeartbeat(response, listenerName, None) } + @Test + def testConsumerGroupHeartbeatWithRegexWithTopicDescribeAclAddedAndRemoved(): Unit = { + createTopicWithBrokerPrincipal(topic) + val allowAllOpsAcl = new AccessControlEntry(clientPrincipalString, WILDCARD_HOST, ALL, ALLOW) + addAndVerifyAcls(Set(allowAllOpsAcl), groupResource) + + val memberId = Uuid.randomUuid.toString; + var response = sendAndReceiveFirstRegexHeartbeat(memberId, listenerName) + TestUtils.tryUntilNoAssertionError() { + response = sendAndReceiveRegexHeartbeat(response, listenerName, Some(0), true) + } + + addAndVerifyAcls(topicDescribeAcl(topicResource), topicResource) + TestUtils.tryUntilNoAssertionError(waitTime = 75000) { Review Comment: Yeah I agree it's a bit annoying. The refresh interval config lower limit is set to be 60s to avoid too frequent refresh, but the integration test seems to use system time so there's no way to advance time manually. Or we decrease the lower limit back to 10s -- 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. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org