You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Segment Replication. Fix Cancellation of replication events.
This PR updates segment replication paths to correctly cancel replication events on the primary and replica.
In the source service, any ongoing event for a primary that is sending to a replica that shuts down or is promoted as a new primary are cancelled.
In the target service, any ongoing event for a replica that is promoted as a new primary or is fetching from a primary that shuts down.
It wires up SegmentReplicationSourceService as an IndexEventListener so that it can respond to events and cancel any ongoing transfer state.
This change also includes some test cleanup for segment replication to rely on actual components over mocks.
Signed-off-by: Marc Handalian <handalm@amazon.com>
Fix to not start/stop SegmentReplicationSourceService as a lifecycle component with feature flag off.
Signed-off-by: Marc Handalian <handalm@amazon.com>
Update logic to properly mark SegmentReplicationTarget as cancelled when cancel initiated by primary.
Signed-off-by: Marc Handalian <handalm@amazon.com>
Minor updates from self review.
Signed-off-by: Marc Handalian <handalm@amazon.com>
* Add missing changelog entry.
Signed-off-by: Marc Handalian <handalm@amazon.com>
Signed-off-by: Marc Handalian <handalm@amazon.com>
(cherry picked from commit 19d1a2b)
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
41
41
### Fixed
42
42
- PR reference to checkout code for changelog verifier ([#4296](https://github.com/opensearch-project/OpenSearch/pull/4296))
43
43
- Restore using the class ClusterInfoRequest and ClusterInfoRequestBuilder from package 'org.opensearch.action.support.master.info' for subclasses ([#4324](https://github.com/opensearch-project/OpenSearch/pull/4324))
44
+
- Fixed cancellation of segment replication events ([#4225](https://github.com/opensearch-project/OpenSearch/pull/4225))
0 commit comments