Skip to content

Conversation

@PeterJCLaw
Copy link
Collaborator

@PeterJCLaw PeterJCLaw commented May 28, 2025

This appears to be consistent between the Python clients, though confluent_kafka does allow passing headers in as a dict.

While I haven't tested it directly, some docs imply that Kafka may treat repeated keys as overwriting previous values, however looking at some of the bytestream parsing code it's not clear whether that actually happens or not.

This appears to be consistent between the Python clients, though
confluent_kafka does allow passing headers in as a dict.
@PeterJCLaw PeterJCLaw marked this pull request as ready for review May 28, 2025 21:32
@PeterJCLaw PeterJCLaw requested a review from alm0ra May 28, 2025 21:32
@PeterJCLaw
Copy link
Collaborator Author

PeterJCLaw commented May 28, 2025

Ah, just spotted that this duplicates #150, though appears to solve the same issue the headers part somewhat more simply. No strong feelings about which solution is used, though having hit this issue myself now it would be great to see a fix.

@alm0ra
Copy link
Owner

alm0ra commented May 30, 2025

Let's close #150. It's been a long time, and I don't remember what I did.

@alm0ra
Copy link
Owner

alm0ra commented May 30, 2025

@PeterJCLaw There is a conflict here

@alm0ra
Copy link
Owner

alm0ra commented May 30, 2025

fix #149

@PeterJCLaw
Copy link
Collaborator Author

Note that I don't think this will address #149 fully -- that also reports issues with keys/values that are bytes. (I've also hit that, but haven't crystallised exactly what the right fix is just yet).

@PeterJCLaw PeterJCLaw merged commit aa4884a into main May 31, 2025
9 checks passed
@PeterJCLaw PeterJCLaw deleted the headers-list-not-dict branch May 31, 2025 10:48
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