Skip to content

Conversation

@shashankhs11
Copy link
Contributor

@shashankhs11 shashankhs11 commented Dec 15, 2025

  • Removed unused methods
  • Minor cleanup of method parameters
  • Removed unused variables and imports

Reviewers: Lucas Brutschy lbrutschy@confluent.io

* @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,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

😅

@github-actions github-actions bot removed the triage PRs from the community label Dec 16, 2025
Copy link
Member

@lucasbru lucasbru left a comment

Choose a reason for hiding this comment

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

LGTM

@lucasbru lucasbru self-assigned this Dec 16, 2025
@lucasbru lucasbru requested a review from Copilot December 16, 2025 09:46
@lucasbru
Copy link
Member

@shashankhs11 needs rebase

Copy link
Contributor

Copilot AI left a 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 (tryToCompleteRestoration and needsInitializationOrRestoration) 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.

@shashankhs11
Copy link
Contributor Author

needs rebase

@lucasbru, done :)

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