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-10199: Revoke tasks from state updater with new remove #15871

Merged

Conversation

cadonna
Copy link
Contributor

@cadonna cadonna commented May 6, 2024

Uses the new remove operation of the state updater that returns
a future to remove revoked tasks from the state udpater.

Committer Checklist (excluded from commit message)

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

@cadonna cadonna force-pushed the stateupdater_revocation_with_new_remove branch from b466ea0 to 3c5f08e Compare May 7, 2024 08:09
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.

Thanks for the PR! Just one comment

@@ -623,6 +623,21 @@ private void addToTasksToClose(final Map<TaskId, CompletableFuture<StateUpdater.
});
}

private void iterateAndActOnRemovedTask(final Map<TaskId, CompletableFuture<StateUpdater.RemovedTaskResult>> futures,
Copy link
Member

Choose a reason for hiding this comment

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

Are we going to reuse this method? Otherwise, I find this a bit too abstract, and I'd just inline it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we are going to re-use it. Stay tuned!

Choose a reason for hiding this comment

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

OK then. Let's continue to have it as a method.

Uses the new remove operation of the state updater that returns
a future to remove revoked tasks from the state udpater.
@cadonna cadonna force-pushed the stateupdater_revocation_with_new_remove branch from d3cca11 to be0567a Compare May 7, 2024 12:41
@cadonna cadonna marked this pull request as ready for review May 7, 2024 12:42
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, thanks!

@cadonna cadonna merged commit f7b242f into apache:trunk May 8, 2024
1 check failed
gongxuanzhang pushed a commit to gongxuanzhang/kafka that referenced this pull request Jun 12, 2024
…15871)

Uses the new remove operation of the state updater that returns
a future to remove revoked tasks from the state updater.

Reviewer: Lucas Brutschy <lbrutschy@confluent.io>
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