Skip to content

KAFKA-10357 Refactor makeReady to reduce complexity and support upcoming KIP-698 changes #20063

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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

k-apol
Copy link
Contributor

@k-apol k-apol commented Jun 28, 2025

This PR reduces the cyclomatic complexity of the makeReady method by
extracting parts of its logic into smaller, well-named helper methods.
This structural cleanup makes the code easier to understand and
maintain.

These changes are intended to prepare for upcoming work related to
KIP-698,
which will introduce additional branching logic to makeReady.
Refactoring now ensures that future modifications can be made in a more
modular and testable way.

@github-actions github-actions bot added triage PRs from the community streams labels Jun 28, 2025
@mjsax mjsax added ci-approved and removed triage PRs from the community labels Jun 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants