Skip to content

Conversation

@sandraromanchenko
Copy link
Collaborator

@sandraromanchenko sandraromanchenko commented Dec 17, 2025

PCSM-249 Powered by Pull Request Badge

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 adds a test to verify data consistency after executing the MongoDB movePrimary command, which is used to change the primary shard for an unsharded database. The test ensures that the PCSM (Percona ClusterSync for MongoDB) tool correctly handles and replicates the primary shard changes from source to target clusters.

Key changes:

  • Adds a new test file test_shard_ops.py for testing shard-related operations
  • Implements test_move_primary to verify the movePrimary command behavior
  • Includes error handling for environments where movePrimary is not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. 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.

2 participants