We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b86e69 commit 6855cf5Copy full SHA for 6855cf5
1 file changed
nebula-dsl/src/main/kotlin/com/orbitalhq/nebula/kafka/KafkaExecutor.kt
@@ -157,8 +157,10 @@ class KafkaExecutor(private val config: KafkaConfig) : InfrastructureComponent<K
157
val result = adminClient.createTopics(topicConfigs)
158
result.all().get(30, TimeUnit.SECONDS) // Wait for completion with timeout
159
logger.info { "Created topics: ${topicConfigs.map { "${it.name()}(${it.numPartitions()} partitions)" }}" }
160
+ } catch (e: TopicExistsException) {
161
+ logger.warn(e) { "Some topics already exist: ${e.message}" }
162
} catch (e: Exception) {
- logger.warn(e) { "Failed to create some topics (they may already exist): ${e.message}" }
163
+ logger.error(e) { "Failed to create topics due to unexpected error: ${e.message}" }
164
}
165
166
0 commit comments