chia7712 commented on code in PR #20068: URL: https://github.com/apache/kafka/pull/20068#discussion_r2202705619
########## core/src/test/scala/integration/kafka/api/PlaintextAdminIntegrationTest.scala: ########## @@ -2963,9 +2981,11 @@ class PlaintextAdminIntegrationTest extends BaseAdminIntegrationTest { TestUtils.assertLeader(client, partition2, 2) // Now change the preferred leader to 1 + sleepMillisToPropagateMetadata(10000, partition2) Review Comment: Perhaps it could be replaced by `TestUtils.waitForPartitionMetadata(brokers, partition2.topic(), partition2.partition())`? -- 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