Skip to content

Conversation

@AnGg98
Copy link
Contributor

@AnGg98 AnGg98 commented Dec 8, 2025

This patch introduces a dedicated TopicRegexResolver component
responsible for resolving regex-based topic subscriptions. The logic was
previously embedded within GroupMetadataManager, coupling group
metadata operations with topic pattern matching.

By extracting this logic into a dedicated resolver, we improve
modularity and make the topic resolution behavior easier to evolve and
test independently. GroupMetadataManager is updated to delegate regex
resolution to the new component, without altering existing semantics.

This is a non-functional refactor intended to improve code clarity and
maintainability.

Reviewers: David Jacot [email protected]

@dajac dajac added ci-approved and removed triage PRs from the community labels Dec 8, 2025
Copy link
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

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

@AnGg98 Thanks for the patch. It is a nice cleanup. I left a few minor comments.

@AnGg98 AnGg98 requested a review from dajac December 12, 2025 07:03
Copy link
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

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

lgtm

@dajac dajac merged commit 157409c into apache:trunk Dec 12, 2025
23 checks passed
shashankhs11 pushed a commit to shashankhs11/kafka that referenced this pull request Dec 15, 2025
…ut of GroupMetadataManager (apache#21103)

This patch introduces a dedicated `TopicRegexResolver` component
responsible for resolving regex-based topic subscriptions. The logic was
previously embedded within `GroupMetadataManager`, coupling group
metadata operations with topic pattern matching.

By extracting this logic into a dedicated resolver, we improve
modularity and make the topic resolution behavior easier to evolve and
test independently. `GroupMetadataManager` is updated to delegate regex
resolution to the new component, without altering existing semantics.

This is a non-functional refactor intended to improve code clarity and
maintainability.

Reviewers: David Jacot <[email protected]>
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