-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Update replicationCheckpoint to include accurate seqNo from SegmentInfos. #6122
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Gradle Check (Jenkins) Run Completed with:
|
…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 <handalm@amazon.com>
…itSegmentInfos. Signed-off-by: Marc Handalian <handalm@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
📣 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 @@
## main #6122 +/- ##
============================================
- Coverage 70.74% 70.72% -0.02%
+ Complexity 58752 58716 -36
============================================
Files 4776 4776
Lines 280990 280993 +3
Branches 40596 40598 +2
============================================
- Hits 198774 198735 -39
- Misses 65876 65910 +34
- Partials 16340 16348 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-6122-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c5a1bdfbfa2f2baab6f100cccd47db2e709e733a
# Push it to GitHub
git push --set-upstream origin backport/backport-6122-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
…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 <handalm@amazon.com> * Add missing test to StoreTests verifying version and userData on commitSegmentInfos. Signed-off-by: Marc Handalian <handalm@amazon.com> --------- Signed-off-by: Marc Handalian <handalm@amazon.com> (cherry picked from commit c5a1bdf)
…fos. (#6122) (#6156) * 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 <handalm@amazon.com> * Add missing test to StoreTests verifying version and userData on commitSegmentInfos. Signed-off-by: Marc Handalian <handalm@amazon.com> --------- Signed-off-by: Marc Handalian <handalm@amazon.com> (cherry picked from commit c5a1bdf)
Three changes here: - Remove unneeded entry (was removed in backport) (opensearch-project#6049) - Move segrep change to proper section (was put in correct spot in backport) (opensearch-project#6122) - Add back issue that was merged to main prior to 2.5 release but not backported, and was therefore removed from the main CHANGELOG (opensearch-project#4603) Signed-off-by: Andrew Ross <andrross@amazon.com>
Three changes here: - Remove unneeded entry (was removed in backport) (#6049) - Move segrep change to proper section (was put in correct spot in backport) (#6122) - Add back issue that was merged to main prior to 2.5 release but not backported, and was therefore removed from the main CHANGELOG (#4603) Signed-off-by: Andrew Ross <andrross@amazon.com>
…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 <handalm@amazon.com> * Add missing test to StoreTests verifying version and userData on commitSegmentInfos. Signed-off-by: Marc Handalian <handalm@amazon.com> --------- Signed-off-by: Marc Handalian <handalm@amazon.com>
Signed-off-by: Marc Handalian handalm@amazon.com
Description
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.
Issues Resolved
closes #6121
Check List
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.