-
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
SegRep with Remote: Add Remote store as a segment replication source #7653
SegRep with Remote: Add Remote store as a segment replication source #7653
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
...er/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationIT.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
Overall changes look good. Please fix the build. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Ankit Kala <[email protected]>
f1da45c
to
35ae04a
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Ankit Kala <[email protected]>
e3c48fe
to
54c820d
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Ankit Kala <[email protected]>
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-7653-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2a3683e4007de25fd1304912bc7405b07552991a
# Push it to GitHub
git push --set-upstream origin backport/backport-7653-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 |
…pensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]>
…1.0.83 (#7933) * Update network schema Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Add joni and jcoding to path Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update Apache Lucene to 9.7.0-snapshot-204acc3 (#7887) Signed-off-by: Andriy Redko <[email protected]> * Add bwc version 2.8.1 (#7942) Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> * Fix changelog entries (#7946) Move entry for #7321 to correct section and fix the malformed entry from #7452. Signed-off-by: Andrew Ross <[email protected]> * SegRep with Remote: Add Remote store as a segment replication source (#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> * rebase Signed-off-by: Stephen Crawford <[email protected]> * remove empty line Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> --------- Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Ankit Kala <[email protected]> Co-authored-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Andrew Ross <[email protected]> Co-authored-by: Ankit Kala <[email protected]>
…pensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]>
…pensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]>
…1.0.83 (opensearch-project#7933) * Update network schema Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Add joni and jcoding to path Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update Apache Lucene to 9.7.0-snapshot-204acc3 (opensearch-project#7887) Signed-off-by: Andriy Redko <[email protected]> * Add bwc version 2.8.1 (opensearch-project#7942) Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> * Fix changelog entries (opensearch-project#7946) Move entry for opensearch-project#7321 to correct section and fix the malformed entry from opensearch-project#7452. Signed-off-by: Andrew Ross <[email protected]> * SegRep with Remote: Add Remote store as a segment replication source (opensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> * rebase Signed-off-by: Stephen Crawford <[email protected]> * remove empty line Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> --------- Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Ankit Kala <[email protected]> Co-authored-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Andrew Ross <[email protected]> Co-authored-by: Ankit Kala <[email protected]>
…pensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]>
…1.0.83 (opensearch-project#7933) * Update network schema Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Add joni and jcoding to path Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update Apache Lucene to 9.7.0-snapshot-204acc3 (opensearch-project#7887) Signed-off-by: Andriy Redko <[email protected]> * Add bwc version 2.8.1 (opensearch-project#7942) Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> * Fix changelog entries (opensearch-project#7946) Move entry for opensearch-project#7321 to correct section and fix the malformed entry from opensearch-project#7452. Signed-off-by: Andrew Ross <[email protected]> * SegRep with Remote: Add Remote store as a segment replication source (opensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> * rebase Signed-off-by: Stephen Crawford <[email protected]> * remove empty line Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> --------- Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Ankit Kala <[email protected]> Co-authored-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Andrew Ross <[email protected]> Co-authored-by: Ankit Kala <[email protected]>
…7653) (#7966) Signed-off-by: Ankit Kala <[email protected]>
…1.0.83 (opensearch-project#7933) * Update network schema Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Add joni and jcoding to path Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update Apache Lucene to 9.7.0-snapshot-204acc3 (opensearch-project#7887) Signed-off-by: Andriy Redko <[email protected]> * Add bwc version 2.8.1 (opensearch-project#7942) Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> * Fix changelog entries (opensearch-project#7946) Move entry for opensearch-project#7321 to correct section and fix the malformed entry from opensearch-project#7452. Signed-off-by: Andrew Ross <[email protected]> * SegRep with Remote: Add Remote store as a segment replication source (opensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> * rebase Signed-off-by: Stephen Crawford <[email protected]> * remove empty line Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> --------- Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Ankit Kala <[email protected]> Co-authored-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Andrew Ross <[email protected]> Co-authored-by: Ankit Kala <[email protected]> Signed-off-by: Rishab Nahata <[email protected]>
@@ -6637,6 +6637,7 @@ public void testLastRefreshCheckpoint() throws Exception { | |||
while (done.get() == false) { | |||
long checkPointBeforeRefresh = engine.getProcessedLocalCheckpoint(); | |||
engine.refresh("test", randomFrom(Engine.SearcherScope.values()), true); | |||
assertThat(engine.currentOngoingRefreshCheckpoint(), greaterThanOrEqualTo(engine.lastRefreshedCheckpoint())); |
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.
@ankitkala this assertion seems to be flaky (#9029), could you please take a look? thank you
…pensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
…1.0.83 (opensearch-project#7933) * Update network schema Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> * Add joni and jcoding to path Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update buildSrc/src/main/java/org/opensearch/gradle/precommit/ValidateJsonAgainstSchemaTask.java Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json Signed-off-by: Stephen Crawford <[email protected]> * Update Apache Lucene to 9.7.0-snapshot-204acc3 (opensearch-project#7887) Signed-off-by: Andriy Redko <[email protected]> * Add bwc version 2.8.1 (opensearch-project#7942) Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> * Fix changelog entries (opensearch-project#7946) Move entry for opensearch-project#7321 to correct section and fix the malformed entry from opensearch-project#7452. Signed-off-by: Andrew Ross <[email protected]> * SegRep with Remote: Add Remote store as a segment replication source (opensearch-project#7653) * SegRep with Remote: Add Remote store as a segment replication source Signed-off-by: Ankit Kala <[email protected]> * Fix Gradle check Signed-off-by: Ankit Kala <[email protected]> * Retrying Gradle check Signed-off-by: Ankit Kala <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> * rebase Signed-off-by: Stephen Crawford <[email protected]> * remove empty line Signed-off-by: Stephen Crawford <[email protected]> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <[email protected]> --------- Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Ankit Kala <[email protected]> Co-authored-by: Andriy Redko <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Andrew Ross <[email protected]> Co-authored-by: Ankit Kala <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Add remote store as a replication source for Segment Replication.
What's not covered in this PR (Fast follows):
pressureServiceStats
andscrollQuery
.SegmentReplicationTarget
&SegmentReplicationSource
for better alignment with remote store.StoreFileMetadata
ingetCheckpointMetadata
. This will depend on how we do the refactor mentioned above.Related Issues
Resolves #4793
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.