Browse Source
After debugging this i can see the times that it fails there is a race between when the topic is actually created/ready on the broker and when the assignment happens. When it fails `StreamPartitionAssignor.assign(..)` gets called with a `Cluster` with no topics. Hence the test hangs as no tasks get assigned. To fix this I added a `waitForTopics` method to `EmbeddedKafkaCluster`. This will wait until the topics have been created.
Author: Damian Guy <damian.guy@gmail.com>
Reviewers: Matthias J. Sax, Guozhang Wang
Closes #2371 from dguy/integration-test-fix
(cherry picked from commit 825f225bc5
)
Signed-off-by: Guozhang Wang <wangguoz@gmail.com>
pull/2423/head
Damian Guy
8 years ago
committed by
Guozhang Wang
11 changed files with 87 additions and 21 deletions
Loading…
Reference in new issue