Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract replicator logic from SegmentReplicationTargetService #15511

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Aug 29, 2024

Description

This is a refactor only that separates code that orchestrates replication events from the transport layer service to initiate & report stats. This is in preparation for implementing a task to initiate replication events on an interval via IndexService.

Related Issues

Related #4577 (comment)

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This change separates code that initiates replication from the target service component in prepartion
for implementing a task to initate replication events on an interval.

Signed-off-by: Marc Handalian <[email protected]>

This comment was marked as outdated.

Copy link
Contributor

✅ Gradle check result for 696d45a: SUCCESS

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 71.90%. Comparing base (9014894) to head (696d45a).
Report is 39 commits behind head on main.

Files with missing lines Patch % Lines
...nsearch/indices/replication/SegmentReplicator.java 77.58% 9 Missing and 4 partials ⚠️
...s/replication/SegmentReplicationTargetService.java 64.28% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #15511      +/-   ##
============================================
- Coverage     71.96%   71.90%   -0.06%     
+ Complexity    63319    63244      -75     
============================================
  Files          5224     5225       +1     
  Lines        296138   296152      +14     
  Branches      42777    42777              
============================================
- Hits         213110   212947     -163     
- Misses        65546    65722     +176     
- Partials      17482    17483       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrross andrross added the backport 2.x Backport to 2.x branch label Aug 30, 2024
@andrross andrross merged commit 2224d48 into opensearch-project:main Aug 30, 2024
38 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 30, 2024
* Extract SegmentReplicator class from SegmentReplicationTargetService.

This change separates code that initiates replication from the target service component in prepartion
for implementing a task to initate replication events on an interval.

Signed-off-by: Marc Handalian <[email protected]>

* Pass timeout value to Replicator instead of fetching from shard

Signed-off-by: Marc Handalian <[email protected]>

---------

Signed-off-by: Marc Handalian <[email protected]>
(cherry picked from commit 2224d48)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sachinpkale pushed a commit to sachinpkale/OpenSearch that referenced this pull request Sep 1, 2024
mch2 pushed a commit that referenced this pull request Sep 1, 2024
#15540)

* Extract SegmentReplicator class from SegmentReplicationTargetService.

This change separates code that initiates replication from the target service component in prepartion
for implementing a task to initate replication events on an interval.



* Pass timeout value to Replicator instead of fetching from shard



---------


(cherry picked from commit 2224d48)

Signed-off-by: Marc Handalian <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
…arch-project#15511)

* Extract SegmentReplicator class from SegmentReplicationTargetService.

This change separates code that initiates replication from the target service component in prepartion
for implementing a task to initate replication events on an interval.

Signed-off-by: Marc Handalian <[email protected]>

* Pass timeout value to Replicator instead of fetching from shard

Signed-off-by: Marc Handalian <[email protected]>

---------

Signed-off-by: Marc Handalian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants