Skip to content

Commit

Permalink
Kafka exception also caught and pass with empty list of topics from k…
Browse files Browse the repository at this point in the history
…afka
  • Loading branch information
Szymon Bogusz committed Nov 28, 2024
1 parent f7e4dd4 commit ce33666
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package pl.touk.nussknacker.engine.schemedkafka

import cats.data.Validated
import org.apache.kafka.clients.admin.ListTopicsOptions
import org.apache.kafka.common.KafkaException
import org.apache.kafka.common.errors.TimeoutException
import pl.touk.nussknacker.engine.kafka.{KafkaConfig, KafkaUtils, UnspecializedTopicName}
import pl.touk.nussknacker.engine.schemedkafka.schemaregistry.{SchemaRegistryClient, SchemaRegistryError}
Expand Down Expand Up @@ -57,6 +58,8 @@ class AllNonHiddenTopicsSelectionStrategy extends TopicSelectionStrategy {
case _: TimeoutException => List.empty
case _ => throw err
}
case _: KafkaException =>
List.empty
}
}

Expand Down

0 comments on commit ce33666

Please sign in to comment.