[Segment Replication] Update force segment replication round to be synchronous#5898
Merged
dreamer-89 merged 8 commits intoopensearch-project:mainfrom Jan 27, 2023
Merged
Conversation
Member
Author
|
Converted to draft as it needs more unit test changes and a stablized integration test which verifies delay operations behavior. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Member
Author
|
Tested the change on a 3 data-node 1 master cluster for below use-cases where I didn't find any issue.
|
4745c50 to
2542a56
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Member
Author
|
@ashking94 @Bukhtawar @mch2 : Gentle reminder on review. |
mch2
reviewed
Jan 25, 2023
...er/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationIT.java
Outdated
Show resolved
Hide resolved
...ernalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationRelocationIT.java
Outdated
Show resolved
Hide resolved
...ernalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationRelocationIT.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/indices/recovery/RemoteRecoveryTargetHandler.java
Show resolved
Hide resolved
Member
Author
@ashking94 @Bukhtawar : Ping for review ^ |
mch2
approved these changes
Jan 27, 2023
Member
mch2
left a comment
There was a problem hiding this comment.
Looks good. Thanks for fixing this!
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
pick da8cb72ab4f Update unit test post rebase
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
b6a9b1a to
c9dc2e7
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Suraj Singh <surajrider@gmail.com>
c9dc2e7 to
fb0b5f2
Compare
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
|
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-5898-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 ebb5813273313d8ebbc4df8576c713651212d3ed
# Push it to GitHub
git push --set-upstream origin backport/backport-5898-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.xThen, create a pull request where the |
6 tasks
dreamer-89
added a commit
to dreamer-89/OpenSearch
that referenced
this pull request
Jan 27, 2023
…nchronous (opensearch-project#5898) * Update force segment replication sync to be synchronous Signed-off-by: Suraj Singh <surajrider@gmail.com> * Add logs and fix spotlessApply Signed-off-by: Suraj Singh <surajrider@gmail.com> pick da8cb72ab4f Update unit test post rebase * Update unit test post rebase Signed-off-by: Suraj Singh <surajrider@gmail.com> * Update integration tests Signed-off-by: Suraj Singh <surajrider@gmail.com> * Mute testPrimaryRelocationWithSegRepFailure Signed-off-by: Suraj Singh <surajrider@gmail.com> * Remove extra closing bracket after main merge Signed-off-by: Suraj Singh <surajrider@gmail.com> * PR feedback Signed-off-by: Suraj Singh <surajrider@gmail.com> * Spotless fix Signed-off-by: Suraj Singh <surajrider@gmail.com> --------- Signed-off-by: Suraj Singh <surajrider@gmail.com>
This was referenced Jan 28, 2023
6 tasks
mch2
pushed a commit
to mch2/OpenSearch
that referenced
this pull request
Mar 4, 2023
…nchronous (opensearch-project#5898) * Update force segment replication sync to be synchronous Signed-off-by: Suraj Singh <surajrider@gmail.com> * Add logs and fix spotlessApply Signed-off-by: Suraj Singh <surajrider@gmail.com> pick da8cb72ab4f Update unit test post rebase * Update unit test post rebase Signed-off-by: Suraj Singh <surajrider@gmail.com> * Update integration tests Signed-off-by: Suraj Singh <surajrider@gmail.com> * Mute testPrimaryRelocationWithSegRepFailure Signed-off-by: Suraj Singh <surajrider@gmail.com> * Remove extra closing bracket after main merge Signed-off-by: Suraj Singh <surajrider@gmail.com> * PR feedback Signed-off-by: Suraj Singh <surajrider@gmail.com> * Spotless fix Signed-off-by: Suraj Singh <surajrider@gmail.com> --------- Signed-off-by: Suraj Singh <surajrider@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change fixes the primary relocation path with segrep. This changes:
StepListenerlistener post above change. This needed corresponding changes in function definitions & unit test changes.Issues Resolved
#5848
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.