Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor TransportShardReplicationOperationAction #10749
Refactors TransportShardReplicationOperationAction state management into clear separate Primary phase and Replication phase. The primary phase is responsible for routing the request to the node holding the primary, validating it and performing the operation on the primary. The Replication phase is responsible for sending the request to the replicas and managing their responses.
This refactoring is aimed at simplifying adding operation start and end hooks that are needed for the counter mentioned in #10032 .
This also adds unit test infrastructure for this class, and some basic tests. We can extend later as we continue developing.
For now, this is planned to go to 2.0.0 but we make backport it to 1.6.0, depending how work goes with #10032