Skip to content

KAFKA-20194: Fix StoreBuilderWrapper for header-stores#21950

Merged
mjsax merged 6 commits intoapache:trunkfrom
mjsax:minor-kip-1285-fix-storebuilderwrapper
Apr 7, 2026
Merged

KAFKA-20194: Fix StoreBuilderWrapper for header-stores#21950
mjsax merged 6 commits intoapache:trunkfrom
mjsax:minor-kip-1285-fix-storebuilderwrapper

Conversation

@mjsax
Copy link
Copy Markdown
Member

@mjsax mjsax commented Apr 3, 2026

StoreBuilderWrapper must recognize header-stores correctly. Otherwise,
we create changelog topics with incorrect topic configuration.

Also adding a fix to public API. The newly added methods to create a
ts-ks-headers-store and session-headesr-store builder (on Stores) are
incorrect (cf. KIP-1271).

Also updated the corresponding internal class name for session-headers
store.

Reviewers: Bill Bejeck bbejeck@apache.org, Alieh Saeedi
asaeedi@confluent.io

@mjsax mjsax added streams kip Requires or implements a KIP labels Apr 3, 2026
@github-actions github-actions bot added the small Small PRs label Apr 3, 2026
return ((TimestampedWindowStoreWithHeadersBuilder<?, ?>) builder).retentionPeriod();
} else if (builder instanceof SessionStoreBuilder) {
return ((SessionStoreBuilder<?, ?>) builder).retentionPeriod();
} else if (builder instanceof SessionStoreBuilderWithHeaders) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It seems we should rename this to SessionStoreWithHeadersBuilder` ?

@github-actions github-actions bot removed the small Small PRs label Apr 3, 2026
mjsax added 5 commits April 3, 2026 12:58
StoreBuilderWrapper must recongnize header-stores correctly.
Otherwise, we create changelog topics with incorrect topi configuration.
@mjsax mjsax force-pushed the minor-kip-1285-fix-storebuilderwrapper branch from d30e3e3 to 9b3c0f3 Compare April 3, 2026 20:01
@mjsax mjsax changed the title MINOR: Fix StoreBuilderWrapper for header-stores KAFKA-20194: Fix StoreBuilderWrapper for header-stores Apr 3, 2026
Copy link
Copy Markdown
Member

@bbejeck bbejeck left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@aliehsaeedii aliehsaeedii left a comment

Choose a reason for hiding this comment

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

Thanks.

@mjsax mjsax merged commit 914051f into apache:trunk Apr 7, 2026
27 checks passed
@mjsax mjsax deleted the minor-kip-1285-fix-storebuilderwrapper branch April 7, 2026 23:48
mjsax added a commit that referenced this pull request Apr 7, 2026
StoreBuilderWrapper must recognize header-stores correctly. Otherwise,
we create changelog topics with incorrect topic configuration.

Also adding a fix to public API. The newly added methods to create a
ts-ks-headers-store and session-headesr-store builder (on `Stores`)  are
incorrect (cf. KIP-1271).

Also updated the corresponding internal class name for session-headers
store.

Reviewers: Bill Bejeck <bbejeck@apache.org>, Alieh Saeedi
 <asaeedi@confluent.io>
@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Apr 7, 2026

Merged to trunk and cherry-picked to 4.3 branch.

nileshkumar3 pushed a commit to nileshkumar3/kafka that referenced this pull request Apr 15, 2026
StoreBuilderWrapper must recognize header-stores correctly. Otherwise,
we create changelog topics with incorrect topic configuration.

Also adding a fix to public API. The newly added methods to create a
ts-ks-headers-store and session-headesr-store builder (on `Stores`)  are
incorrect (cf. KIP-1271).

Also updated the corresponding internal class name for session-headers
store.

Reviewers: Bill Bejeck <bbejeck@apache.org>, Alieh Saeedi
 <asaeedi@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kip Requires or implements a KIP streams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants