Browse Source

MINOR: Fix flaky testFollowerCompleteDelayedFetchesOnReplication (#14616)

Reviewers: Mickael Maison <mickael.maison@gmail.com>
pull/13682/merge
dengziming 11 months ago committed by GitHub
parent
commit
03ea24aa1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      core/src/test/scala/integration/kafka/server/FetchFromFollowerIntegrationTest.scala

1
core/src/test/scala/integration/kafka/server/FetchFromFollowerIntegrationTest.scala

@ -67,6 +67,7 @@ class FetchFromFollowerIntegrationTest extends BaseFetchRequestTest { @@ -67,6 +67,7 @@ class FetchFromFollowerIntegrationTest extends BaseFetchRequestTest {
brokers,
replicaAssignment = Map(0 -> Seq(leaderBrokerId, followerBrokerId))
)
TestUtils.waitUntilLeaderIsKnown(brokers, new TopicPartition(topic, 0))
assertTrue(partitionLeaders.values.forall(_ == leaderBrokerId))
val version = ApiKeys.FETCH.latestVersion()

Loading…
Cancel
Save