Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mslabek committed Nov 27, 2024
1 parent 21bad8d commit d57db70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ class KafkaClient(kafkaAddress: String, id: String) extends LazyLogging {
def createTopic(name: String, partitions: Int = 5): Unit = {
adminClient.createTopics(Collections.singletonList(new NewTopic(name, partitions, 1: Short))).all().get()
// When kraft enabled, topics doesn't appear instantly after createTopic
val maxTime = 10.seconds
val timeout = 10.seconds
Await.result(
retry.Pause(10, 1.second)(Timer.default)(
Future {
topic(name)
}
),
maxTime
timeout
)
}

Expand Down

0 comments on commit d57db70

Please sign in to comment.