-
Notifications
You must be signed in to change notification settings - Fork 14.8k
MINOR: Cleanup additional dead code missed during stateupdater refactoring #21157
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
base: trunk
Are you sure you want to change the base?
Conversation
| * @throws StreamsException if the store's change log does not contain the partition | ||
| * @return {@code true} if all tasks are fully restored | ||
| */ | ||
| boolean tryToCompleteRestoration(final long now, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
lucasbru
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@shashankhs11 needs rebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR cleans up dead code that was missed during the state updater refactoring. The changes remove unused methods, method parameters, test mock fields, and imports that are no longer needed after the refactoring.
Key changes:
- Removed two large unused methods from TaskManager (
tryToCompleteRestorationandneedsInitializationOrRestoration) that were replaced by state updater functionality - Cleaned up unused method parameters in test and production code
- Removed unused mock fields and variables from test classes
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| TaskManager.java | Removed unused tryToCompleteRestoration method (77 lines), needsInitializationOrRestoration method, addTask test helper method, and unused LinkedList import |
| StreamThread.java | Removed unused initializeAndRestorePhase method (32 lines) and removed unused log and threadId parameters from setupMainConsumer method |
| StreamThreadStateStoreProviderTest.java | Removed unused Admin import and removed unused restoreConsumer and adminClient parameters from createStreamsTask helper method |
| TaskManagerTest.java | Removed unused ProcessorStateManager mock field |
| StreamThreadTest.java | Removed unused task3 TaskId field variable |
| ActiveTaskCreatorTest.java | Removed unused ChangelogReader mock field |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9047050 to
c694e43
Compare
@lucasbru, done :) |
Reviewers: Lucas Brutschy lbrutschy@confluent.io