Skip to content

Conversation

AndreKurait
Copy link
Member

@AndreKurait AndreKurait commented Mar 20, 2025

Description

Add rfs-only for 5x->5x, 7.10->7.10 migrations with tests.
Cleanup how work coordination is done, use refresh=wait_for over individual _refresh calls

Issues Resolved

Testing

Unit tests

Check List

  • New functionality includes testing
  • Public documentation issue/PR created, if applicable.

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.

@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 02e04dc to 0fa5a7a Compare March 21, 2025 01:00
@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 0fa5a7a to 1d2377d Compare March 21, 2025 14:25
@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 1d2377d to e50862e Compare March 21, 2025 14:26
Signed-off-by: Andre Kurait <[email protected]>
@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 64cd4b1 to 085ef1e Compare March 21, 2025 20:21
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (1ea4f15) to head (823efa2).
Report is 20 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #1373       +/-   ##
============================================
- Coverage     80.12%       0   -80.13%     
============================================
  Files           440       0      -440     
  Lines         16184       0    -16184     
  Branches       1078       0     -1078     
============================================
- Hits          12968       0    -12968     
+ Misses         2582       0     -2582     
+ Partials        634       0      -634     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AndreKurait AndreKurait changed the title Add experimental support in RFS for same version to same version migrations Add experimental support in RFS for same version to same version migrations Mar 21, 2025
BASE(Map.of("discovery.type", "single-node",
"path.repo", CLUSTER_SNAPSHOT_DIR,
"ES_JAVA_OPTS", "-Xms512m -Xmx512m")),
"ES_JAVA_OPTS", "-Xms2g -Xmx2g",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had more consistent ES performance with this larger memory and settings below. We should be running all containers in isolatedTests so less concern of contention with parallelization

@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 114adf0 to adae298 Compare March 21, 2025 21:31
@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from adae298 to 9adf692 Compare March 21, 2025 21:35
@AndreKurait AndreKurait marked this pull request as ready for review March 21, 2025 21:35
@AndreKurait AndreKurait changed the title Add experimental support in RFS for same version to same version migrations Cleanup RFS source and target versions Mar 21, 2025
@mikaylathompson
Copy link
Collaborator

Wait, do we support/want to support 5.x as a target? Why?

@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 9adf692 to 61e693f Compare March 21, 2025 22:27
@AndreKurait
Copy link
Member Author

Wait, do we support/want to support 5.x as a target? Why?

This is useful to us in an rfs-only support which will allow us to use RFS to generate large snapshots (e.g. 10 TB)

@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 61e693f to a7f3a41 Compare March 21, 2025 22:34
@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from a7f3a41 to 4d87ee5 Compare March 21, 2025 22:34
@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 4d87ee5 to 0a342b4 Compare March 21, 2025 22:35
@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 0a342b4 to 9af9f68 Compare March 21, 2025 22:36
@AndreKurait AndreKurait changed the title Cleanup RFS source and target versions Cleanup RFS source and target versions, add support for RFS 5.x, 7.x target with same-version migrations Mar 24, 2025
Copy link
Member

@peternied peternied left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change the runtime goes up to 57m - that seems like a huge jump can we see about reducing that?

gradle-tests (:DocumentsFromSnapshotMigration:jacocoTestReport)
succeeded 3 days ago in 57m 15s

@peternied
Copy link
Member

Thanks for creating that draft PR [1] for improving the test stripping - that would reduce my concerns about the test runtime

@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from 9af9f68 to cde7841 Compare March 24, 2025 15:49
Signed-off-by: Andre Kurait <[email protected]>
@AndreKurait AndreKurait force-pushed the AddES5and7TargetExpirimentalRFSOnlySupport branch from cde7841 to 0be43e3 Compare March 24, 2025 15:56
@peternied
Copy link
Member

Thanks for creating that draft PR [1] for improving the test stripping - that would reduce my concerns about the test runtime

@AndreKurait Would you mind holding off on merging this change until we've [1] has been merged?

@AndreKurait AndreKurait dismissed peternied’s stale review March 25, 2025 00:30

Addressed feedback with #1376 merged into main

@AndreKurait AndreKurait merged commit 3def26a into opensearch-project:main Mar 25, 2025
54 checks passed
@AndreKurait AndreKurait deleted the AddES5and7TargetExpirimentalRFSOnlySupport branch March 25, 2025 00:31
@sumobrian
Copy link
Collaborator

Related fix for supporting ES 5 as a target: https://opensearch.atlassian.net/browse/MIGRATIONS-2464.

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.

4 participants