-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Remote Translog] Trimming based on Remote Segment Store #7383
[Remote Translog] Trimming based on Remote Segment Store #7383
Conversation
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/index/translog/RemoteFsTranslog.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/translog/RemoteFsTranslog.java
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
102ccd0
to
2b00219
Compare
Gradle Check (Jenkins) Run Completed with:
|
2b00219
to
d81a0cf
Compare
4a35902
to
4d602e2
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
server/src/internalClusterTest/java/org/opensearch/remotestore/ReplicaToPrimaryPromotionIT.java
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/remotestore/ReplicaToPrimaryPromotionIT.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add an IT that checks if the trimming is happening as expected? Validate the number of translog files (tlog/ckp) in the repo? I had done something similar here - https:/opensearch-project/OpenSearch/blob/main/server/src/internalClusterTest/java/org/opensearch/remotestore/RemoteStoreRefreshListenerIT.java#L85
I have UTs covering the trimming part comprehensively . IT is testing the failover doesn't cause any data loss . |
server/src/main/java/org/opensearch/index/translog/RemoteFsTranslog.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Gaurav Bafna <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Gaurav Bafna <[email protected]>
bad54d9
to
47775df
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Did it even run codecov tests this time? |
Yes it did : https://app.codecov.io/gh/opensearch-project/OpenSearch/pull/7383 |
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-7383-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 613f4aa046912b583925a9a03cb2294efd2a002c
# Push it to GitHub
git push --set-upstream origin backport/backport-7383-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 |
hi @gbbafna, there is backport2.x label present, will this be backported to 2.x? |
@monu-aws : Yes, I will be backporting it by 24/05. |
…project#7383) * [Remote Translog] Set min referenced as per remote segment store only when enabled. Add IT for failover using remote translog as well Signed-off-by: Gaurav Bafna <[email protected]> Signed-off-by: Ashish Singh <[email protected]>
…project#7383) * [Remote Translog] Set min referenced as per remote segment store only when enabled. Add IT for failover using remote translog as well Signed-off-by: Gaurav Bafna <[email protected]>
…re (#7383) (#7699) * [Remote Translog] Trimming based on Remote Segment Store (#7383) * [Remote Translog] Set min referenced as per remote segment store only when enabled. Add IT for failover using remote translog as well Signed-off-by: Gaurav Bafna <[email protected]> Signed-off-by: Ashish Singh <[email protected]>
…project#7383) * [Remote Translog] Set min referenced as per remote segment store only when enabled. Add IT for failover using remote translog as well Signed-off-by: Gaurav Bafna <[email protected]>
…project#7383) * [Remote Translog] Set min referenced as per remote segment store only when enabled. Add IT for failover using remote translog as well Signed-off-by: Gaurav Bafna <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
When remote segment is enabled, the min generation translog retain should just use the seq no upload there instead of using local checkpoint of safe commit , which gets updated only on flush .
Also added Integ tests of failover for Remote Translog .
Related Issues
#7381
#6195
#5670
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.