Skip to content

fix(producer): make Rust Kafka producer constructors fallible - #563

Merged
lvthanh03 merged 1 commit into
mainfrom
tony/producer-fallible
Aug 31, 2026
Merged

fix(producer): make Rust Kafka producer constructors fallible#563
lvthanh03 merged 1 commit into
mainfrom
tony/producer-fallible

Conversation

@lvthanh03

@lvthanh03 lvthanh03 commented Aug 28, 2026

Copy link
Copy Markdown
Member

Refs STREAM-1754

Make the synchronous and asynchronous Rust Kafka producer constructors return Result<_, KafkaError>.

Previously, invalid librdkafka configuration caused create_with_context to panic through unwrap(). The constructors now propagate the original KafkaError, allowing callers to handle configuration failures.

@lvthanh03
lvthanh03 requested review from a team as code owners August 28, 2026 19:54
@linear-code

linear-code Bot commented Aug 31, 2026

Copy link
Copy Markdown

STREAM-1754

@lvthanh03
lvthanh03 merged commit 686a8e3 into main Aug 31, 2026
23 checks passed
@lvthanh03
lvthanh03 deleted the tony/producer-fallible branch August 31, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants