Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
TEST: Capture replication targets when ReplicationGroup ready #34407
Today, WriteReplicationAction uses the list of replication targets directly from the primary shard of ReplicationGroup. It should be fine except when we add/remove or promote a shard while a WriteReplicationAction is executing. We have encountered these two issues:
This PR captures the replication targets when the replication group is ready and continue using those targets until we re-compute the new targets after the group is changed.