8000 Detect AOF History Divergence with No Checkpoint by vazois · Pull Request #1263 · microsoft/garnet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Detect AOF History Divergence with No Checkpoint #1263

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

vazois
8000 Copy link
Collaborator
@vazois vazois commented Jun 20, 2025

Added check for history divergence when no checkpoint is taken.
In that case, we need to replay AOF from BeginAddress to ensure replica does not diverge

@Copilot Copilot AI review requested due to automatic review settings June 20, 2025 19:37
Copy link
Contributor
@Copilot 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 adds new tests for AOF history divergence scenarios when no checkpoint is taken and adjusts related cluster replication and configuration logic. Key changes include new tests for multi-restart recovery and history divergence without checkpoint, updates to logging and comments in replication management, and enhancements to cluster configuration formatting.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/Garnet.test.cluster/ReplicationTests/ClusterReplicationBaseTests.cs Added tests for multi-restart recovery and history divergence without checkpoint; updated test order attributes.
test/Garnet.test.cluster/ClusterTestUtils.cs Added a new WaitForPrimaryRole method.
libs/cluster/Session/RespClusterBasicCommands.cs Updated call to GetShardsInfo to include a cluster connection parameter.
libs/cluster/Server/Replication/ReplicationManager.cs Updated comment to reflect change from TryConnectToPrimary to TryReplicate.
libs/cluster/Server/Replication/PrimaryOps/ReplicaSyncSession.cs Enhanced checkpoint logic to determine when to replay AOF from the beginning.
libs/cluster/Server/ClusterConfig.cs Modified cluster config formatting to include connection status and improved documentation.

@vazois vazois force-pushed the vazois/repeated-recover-test branch from d3d6cd6 to f8d7b0a Compare June 23, 2025 17:00
@vazois vazois marked this pull request as draft June 23, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0