Skip to content

Bump rdkafka to fix some issue with kafka 4.X.X and kraft #5841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 17, 2025

Conversation

nico34638
Copy link
Contributor

Description

Bump rdkafka to fix some issue with kafka 4.X.X and kraft

@fmassot
Copy link
Collaborator

fmassot commented Jul 14, 2025

Thanks a lot @nico34638! Did you test it on your environment?

@nico34638
Copy link
Contributor Author

Yes, I tested it with an aws msk 4.0.0 kraft cluster and the connection works fine.

@fmassot
Copy link
Collaborator

fmassot commented Jul 14, 2025

Great. @rdettai can you review?

@fulmicoton-dd fulmicoton-dd requested a review from rdettai July 15, 2025 01:54
Copy link
Collaborator

@rdettai rdettai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see clippy

error[E0308]: mismatched types
   --> quickwit-indexing/src/source/kafka_source.rs:856:23
    |
856 |                 .map(|(partition, offset)| (id, partition, offset))
    |                       ^^^^^^^^^^^^^^^^^^^
    |                       |
    |                       expected `Delivery`, found `(_, _)`
    |                       expected due to this
    |
    = note: expected struct `rdkafka::producer::future_producer::Delivery`
                found tuple `(_, _)`

@nico34638
Copy link
Contributor Author

I've added a fix

@@ -853,7 +853,7 @@ mod kafka_broker_tests {
Duration::from_secs(1),
)
.await
.map(|(partition, offset)| (id, partition, offset))
.map(|delivery| (id, delivery.partition, delivery.offset))
Copy link
Collaborator

@rdettai rdettai Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it's fmt that isn't happy because of the trailing space. You can run make fix as advised in the contribution guide to prevent these issues. Thanks!

@nico34638
Copy link
Contributor Author

I've added a fix, sorry

Copy link
Collaborator

@rdettai rdettai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test with various auth configurations, but integ tests work (see https://github.com/quickwit-oss/quickwit/actions/runs/16339696703/job/46159034682)

@rdettai rdettai enabled auto-merge (squash) July 17, 2025 09:59
@rdettai rdettai merged commit 5d2cc89 into quickwit-oss:main Jul 17, 2025
4 checks passed
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