Skip to content

[WIP] KAFKA-20412: Propagate headers into serde: CachingKeyValueStore#21971

Open
UladzislauBlok wants to merge 1 commit intoapache:trunkfrom
UladzislauBlok:bloku/kafka-20173-11
Open

[WIP] KAFKA-20412: Propagate headers into serde: CachingKeyValueStore#21971
UladzislauBlok wants to merge 1 commit intoapache:trunkfrom
UladzislauBlok:bloku/kafka-20173-11

Conversation

@UladzislauBlok
Copy link
Copy Markdown
Contributor

@UladzislauBlok UladzislauBlok commented Apr 5, 2026

as a title

validateStoreOpen();
final KeyValueIterator<Bytes, byte[]> storeIterator = wrapped().prefixScan(prefix, prefixKeySerializer);
final Bytes from = Bytes.wrap(prefixKeySerializer.serialize(null, prefix));
final Bytes from = Bytes.wrap(prefixKeySerializer.serialize(null, internalContext.headers(), prefix));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I was thinking about this a little bit, and this change sounds generally ok to me.

But I would assume, that there is also other code (ie, other classes implementing prefixScan method that might need some updates, too?

Btw: we also just added CachingKeyValueStoreWithHeaders for which we might want to do this differently, ie, similar to what we did for put(key, null) -- ie, the change would not go into CachingKeyValueStoreWithHeaders but rather MeteredTimestampKeyValueStoreWithHeaders to modify the RecordContext set on the internalContext object. 🤔

@mjsax
Copy link
Copy Markdown
Member

mjsax commented Apr 8, 2026

We filed a new ticket to track the prefixScan work: https://issues.apache.org/jira/browse/KAFKA-20412 -- If you want to tackle it end-to-end, please assign the ticket to yourself, update the KAFKA-XXX number on this PR.

@mjsax mjsax added ci-approved and removed triage PRs from the community labels Apr 8, 2026
@UladzislauBlok UladzislauBlok changed the title KAFKA-20173: Propagate headers into serde: CachingKeyValueStore [WIP] KAFKA-20412: Propagate headers into serde: CachingKeyValueStore Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants