Skip to content

MINOR: rename TaskRegistry methods to better reflect their purpose.#21448

Open
Nikita-Shupletsov wants to merge 1 commit intoapache:trunkfrom
Nikita-Shupletsov:monor-rename-methods-in-task-registry
Open

MINOR: rename TaskRegistry methods to better reflect their purpose.#21448
Nikita-Shupletsov wants to merge 1 commit intoapache:trunkfrom
Nikita-Shupletsov:monor-rename-methods-in-task-registry

Conversation

@Nikita-Shupletsov
Copy link
Contributor

@Nikita-Shupletsov Nikita-Shupletsov commented Feb 10, 2026

Changed the name of method that work only with initialized tasks(not
pending) to better reflect their purpose.

Reviewers: Matthias J. Sax matthias@confluent.io, Lucas Brutschy
lbrutschy@confluent.io

@Override
public synchronized void clear() {
pendingTasksToInit.clear();
pendingTasksToClose.clear();
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be the only change not related to re-naming; what's the impact of this change? Sound like a bug, but maybe only minor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I missed that part:(
the only usage of this list is to verify that we are deleting an existing task, so even though it's technically a bug, I can't think of an impact of it, as it's not used anywhere outside of shutdown and only for validation purposes

@mjsax mjsax added ci-approved and removed triage PRs from the community labels Feb 11, 2026
@mjsax
Copy link
Member

mjsax commented Feb 11, 2026

Overall LGTM -- I will hold off merging before AK 4.2.0 got release, because I would like to cherry-pick it to 4.2 branch (main purpose is to keep future cherry-pick to 4.2 clean).

Open to also cherry-pick to 4.1, but it seems more unlikely that there would be another 4.1.3 bug-fix release, so maybe not worth. -- I would for sure "exclude" 4.0 branch as "too old".

Thoughts?

@Nikita-Shupletsov
Copy link
Contributor Author

Thoughts?

makes sense to me

@lucasbru
Copy link
Member

LGTM, thanks for following up to clean this up!

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.

3 participants