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-18168: Adding checkpointing for GlobalKTable during restoration… #18752

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

Conversation

janchilling
Copy link

@janchilling janchilling commented Jan 30, 2025

… and closing.

To address the issue of not creating a checkpoint file during the restoring and closing process, called the GlobalStateUpdateTask.flushState() method in GlobalStateUpdateTask.initialize() and GlobalStateUpdateTask.close() methods. This will flush the state and create a checkpoint file thereby, avoiding the need to completely restore the entire state.

As discussed with @mjsax in the Jira ticket.

… and closing.

To address the issue of not creating a checkpoint file during the restoring and closing process, called the GlobalStateUpdateTask.flushState() method in GlobalStateUpdateTask.initialize() and GlobalStateUpdateTask.close() methods. This will flush the state and create a checkpoint file thereby, avoiding the need to completely restore the entire state.
@github-actions github-actions bot added triage PRs from the community streams small Small PRs labels Jan 30, 2025
@mjsax
Copy link
Member

mjsax commented Feb 5, 2025

@aliehsaeedii for review.

Copy link

github-actions bot commented Feb 7, 2025

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

…d closing.

Added test cases to check if checkpointing happens during restoring and closing. Furthermore, updated the following test cases shouldNotCheckpointIfNotReceivedEnoughRecords(), shouldNotCheckpointIfNotReceivedEnoughRecords(), shouldNotCheckpointWhenFlushIntervalHasNotLapsed() to accept checkpointing during initialization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants