Skip to content

Commit 6855cf5

Browse files
martypittCopilot
andauthored
Update nebula-dsl/src/main/kotlin/com/orbitalhq/nebula/kafka/KafkaExecutor.kt
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8b86e69 commit 6855cf5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nebula-dsl/src/main/kotlin/com/orbitalhq/nebula/kafka/KafkaExecutor.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ class KafkaExecutor(private val config: KafkaConfig) : InfrastructureComponent<K
157157
val result = adminClient.createTopics(topicConfigs)
158158
result.all().get(30, TimeUnit.SECONDS) // Wait for completion with timeout
159159
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}" }
160162
} catch (e: Exception) {
161-
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}" }
162164
}
163165
}
164166
}

0 commit comments

Comments
 (0)