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

[Backport 2.x] [Segment Rreplication] Adding CheckpointRefreshListener to trigger when Segment replication is turned on and Primary shard refreshes #4044

Merged

Conversation

Rishikesh1159
Copy link
Member

Description

Backport fd5a38d from #3108

Issues Resolved

#3108

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.

Rishikesh1159 and others added 2 commits July 29, 2022 16:42
…is turned on and Primary shard refreshes (opensearch-project#3108)

* Intial PR adding classes and tests related to checkpoint publishing

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Putting a Draft PR with all changes in classes. Testing is still not included in this commit.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Wiring up index shard to new engine, spotless apply and removing unnecessary tests and logs

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Adding Unit test for checkpointRefreshListener

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Applying spotless check

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Fixing import statements *

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* removing unused constructor in index shard

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Addressing comments from last commit

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Adding package-info.java files for two new packages

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Adding test for null checkpoint publisher and addreesing PR comments

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Add docs for indexshardtests and remove shard.refresh

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>
Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #4044 (e120686) into 2.x (fb4f96f) will decrease coverage by 0.05%.
The diff coverage is 61.65%.

@@             Coverage Diff              @@
##                2.x    #4044      +/-   ##
============================================
- Coverage     70.63%   70.58%   -0.06%     
+ Complexity    56487    56480       -7     
============================================
  Files          4527     4534       +7     
  Lines        271798   271930     +132     
  Branches      39975    39987      +12     
============================================
- Hits         191985   191939      -46     
- Misses        63718    63806      +88     
- Partials      16095    16185      +90     
Impacted Files Coverage Δ
...c/main/java/org/opensearch/index/IndexService.java 74.82% <0.00%> (-0.18%) ⬇️
.../replication/checkpoint/ReplicationCheckpoint.java 24.24% <24.24%> (ø)
...eplication/checkpoint/PublishCheckpointAction.java 29.26% <29.26%> (ø)
...plication/checkpoint/PublishCheckpointRequest.java 36.36% <36.36%> (ø)
.../indices/replication/common/ReplicationTarget.java 63.41% <63.41%> (ø)
...in/java/org/opensearch/index/shard/IndexShard.java 70.06% <66.66%> (+0.90%) ⬆️
...ch/indices/recovery/PeerRecoveryTargetService.java 52.18% <68.00%> (-0.18%) ⬇️
...rg/opensearch/indices/recovery/RecoveryTarget.java 70.83% <69.56%> (-4.59%) ⬇️
...ices/replication/common/ReplicationCollection.java 71.56% <71.56%> (ø)
...nsearch/index/shard/CheckpointRefreshListener.java 100.00% <100.00%> (ø)
... and 476 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

@Rishikesh1159 Rishikesh1159 merged commit 3bf01e9 into opensearch-project:2.x Aug 1, 2022
@Rishikesh1159 Rishikesh1159 deleted the backport/backport-3108 branch August 1, 2022 18:33
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.

3 participants