Skip to content

KAFKA-20413: Make Streams suppress headers-aware#22165

Open
aliehsaeedii wants to merge 1 commit intoapache:trunkfrom
aliehsaeedii:headers_aware_suppress
Open

KAFKA-20413: Make Streams suppress headers-aware#22165
aliehsaeedii wants to merge 1 commit intoapache:trunkfrom
aliehsaeedii:headers_aware_suppress

Conversation

@aliehsaeedii
Copy link
Copy Markdown
Contributor

This PR fixes the suppress-buffer part of KAFKA-20413: InMemoryTimeOrderedKeyValueChangeBuffer now uses the buffered record's own headers in serde calls and on eviction, and priorValueForBuffered returns the real timestamp + headers instead of RecordQueue.UNKNOWN / empty RecordHeaders.

Testing:
Added shouldPropagateHeadersThroughEviction, shouldReturnBufferedHeadersFromPriorValue, shouldUseRecordHeadersNotProcessorContextHeadersOnPut.

@github-actions github-actions Bot added triage PRs from the community streams labels Apr 28, 2026
@aliehsaeedii aliehsaeedii changed the title KAFKA-20413:: Make Streams suppress headers-aware KAFKA-20413: Make Streams suppress headers-aware Apr 28, 2026
Copy link
Copy Markdown
Contributor

@UladzislauBlok UladzislauBlok left a comment

Choose a reason for hiding this comment

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

LGTM

final MockInternalProcessorContext<?, ?> context = makeContext();
buffer.init(context, buffer);

final RecordHeaders headers = new RecordHeaders(new Header[]{new RecordHeader("h1", "v1".getBytes(UTF_8))});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minor: we don't need to specify utf8

@github-actions github-actions Bot removed the triage PRs from the community label Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants