Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-15045: (KIP-924 pt. 4) Generify rack graph solving utilities #15956

Merged
merged 2 commits into from
May 16, 2024

Conversation

apourchet
Copy link
Contributor

@apourchet apourchet commented May 14, 2024

The graph solving utilities are currently hardcoded to work with ClientState, but don't actually depend on anything in those state classes.

This change allows the MinTrafficGraphConstructor and BalanceSubtopologyGraphConstructor to be reused with KafkaStreamsStates instead.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

The graph solving utilities are currently hardcoded to work with
ClientState, but don't actually depend on anything in those state
classes.

This change allows the MinTrafficGraphConstructor and
BalanceSubtopologyGraphConstructor to be reused with KafkaStreamsStates
instead.
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

LGTM (non-binding)

Copy link
Contributor

@ableegoldman ableegoldman left a comment

Choose a reason for hiding this comment

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

LGTM, we're missing one of the java builds so we'll need to rerun the tests anyway so might as well change the generic type name from ClientStateT to T or C or something

@ableegoldman ableegoldman merged commit fafa3c7 into apache:trunk May 16, 2024
1 check failed
@ableegoldman
Copy link
Contributor

Test failures are unrelated, merged to trunk

rreddy-22 pushed a commit to rreddy-22/kafka-rreddy that referenced this pull request May 24, 2024
…pache#15956)

The graph solving utilities are currently hardcoded to work with ClientState, but don't actually depend on anything in those state classes.

This change allows the MinTrafficGraphConstructor and BalanceSubtopologyGraphConstructor to be reused with KafkaStreamsStates instead.

Reviewers: Anna Sophie Blee-Goldman <ableegoldman@apache.org>, Almog Gavra <almog@responsive.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants