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] Remove seqNo field from ReplicationCheckpoint and use UserData to transfer state. #6601

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Mar 9, 2023

…nd use UserData to transfer state. (#6594)

  • Segment Replication - Fix incorrect maxSeqNo computation.

This change updates getLatestSegmentInfos to only return the max seqNo from the previous commit point. This is the only way to guarantee that up to this seqNo has made it into the commit point.

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

  • Remove unnecessary seqNo field from ReplicationCheckpoint.

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

Description

Backport #6594

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

Gradle Check (Jenkins) Run Completed with:

@dreamer-89
Copy link
Member

Gradle Check (Jenkins) Run Completed with:

PR needs some fixing @mch2

> Task :server:compileJava
/var/jenkins/workspace/gradle-check/search/server/src/main/java/org/opensearch/indices/replication/SegmentReplicationTarget.java:223: error: method finalizeReplication in class IndexShard cannot be applied to given types;
                indexShard.finalizeReplication(infos);
                          ^
  required: SegmentInfos,long
  found:    SegmentInfos
  reason: actual and formal argument lists differ in length

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

Gradle Check (Jenkins) Run Completed with:

…nd use UserData to transfer state. (opensearch-project#6594)

* Segment Replication - Fix incorrect maxSeqNo computation.

This change updates getLatestSegmentInfos to only return the max seqNo from the previous
commit point.  This is the only way to guarantee that up to this seqNo has made it into the commit point.

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

* Remove unnecessary seqNo field from ReplicationCheckpoint.

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

---------

Signed-off-by: Marc Handalian <[email protected]>
(cherry picked from commit f4739bb)
Signed-off-by: Marc Handalian <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.SearchWeightedRoutingIT.testShardRoutingWithNetworkDisruption_FailOpenEnabled

@codecov-commenter
Copy link

Codecov Report

Merging #6601 (2284d3b) into 2.x (d9d1dc8) will increase coverage by 0.04%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x    #6601      +/-   ##
============================================
+ Coverage     70.39%   70.44%   +0.04%     
- Complexity    59272    59346      +74     
============================================
  Files          4800     4800              
  Lines        284608   284602       -6     
  Branches      41353    41352       -1     
============================================
+ Hits         200350   200478     +128     
+ Misses        67463    67382      -81     
+ Partials      16795    16742      -53     
Impacted Files Coverage Δ
.../opensearch/index/engine/NRTReplicationEngine.java 77.16% <100.00%> (-0.48%) ⬇️
...in/java/org/opensearch/index/shard/IndexShard.java 69.96% <100.00%> (+0.61%) ⬆️
.../indices/replication/SegmentReplicationTarget.java 93.20% <100.00%> (ø)
.../replication/checkpoint/ReplicationCheckpoint.java 56.41% <100.00%> (-0.41%) ⬇️

... and 477 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dreamer-89 dreamer-89 merged commit fb0d7d7 into opensearch-project:2.x Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants