Skip to content

Conversation

vazois
Copy link
Collaborator

@vazois vazois commented Oct 10, 2025

This PR fixes issue #1407.

@Copilot Copilot AI review requested due to automatic review settings October 10, 2025 18:26
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 addresses issue #1407 by implementing a fix to reset the CancellationTokenSource (CTS) in the ReplicationSyncManager when synchronization operations fail. The changes ensure that failed replication sync operations can be retried with a fresh CTS instead of being permanently blocked.

Key changes:

  • Modified CTS handling to allow resetting after failures
  • Added proper disposal checks to prevent race conditions
  • Introduced exception injection testing for the reset mechanism

Reviewed Changes

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

File Description
ReplicationSyncManager.cs Core fix implementing CTS reset logic with disposal safety checks
ExceptionInjectionType.cs Added new exception type for testing CTS reset functionality
ClusterReplicationDisklessSyncTests.cs Added test case to verify CTS reset behavior works correctly

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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