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] Backport #6122 to 2.x #6156

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Feb 2, 2023

Manual backport of #6122 to 2.x.

…fos. (opensearch-project#6122)

* Update replicationCheckpoint to include accurate seqNo from provided SegmentInfos.

This change updates IndexShard#getlatestSegmentInfos to include the latest max seqNo from the primary's
segmentInfos snapshot.  It also updates the method to return a Tuple so that both can be fetched.
This change also updates replicas to not bump their SegmentInfos version when performing a commit.

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

* Add missing test to StoreTests verifying version and userData on commitSegmentInfos.

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

---------

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

github-actions bot commented Feb 2, 2023

Gradle Check (Jenkins) Run Completed with:

@dreamer-89 dreamer-89 merged commit bd6484a into opensearch-project:2.x Feb 2, 2023
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.

2 participants