-
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
[Segment Replication] Added mixed and rolling upgrade bwc test #7537
[Segment Replication] Added mixed and rolling upgrade bwc test #7537
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.
65b429c
to
4fb8f42
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@dreamer-89 Needs a rebase to pick up bwc fix. |
6c33e5c
to
8fbd51f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Suraj Singh <[email protected]>
Signed-off-by: Suraj Singh <[email protected]>
Signed-off-by: Suraj Singh <[email protected]>
Signed-off-by: Suraj Singh <[email protected]>
8fbd51f
to
ec67769
Compare
Gradle Check (Jenkins) Run Completed with:
|
qa/mixed-cluster/src/test/java/org/opensearch/backwards/IndexingIT.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Suraj Singh <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Suraj Singh <[email protected]>
Failed due to null node filter, which happens there is no replica returned from {indexName}/_stats API call. Test failure is not reproable. Updated logic to fetch replica doc count only when it is avaialble.
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Suraj Singh <[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-7537-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0788feb946e459b500dd807682cbeb0e05c30fc2
# Push it to GitHub
git push --set-upstream origin backport/backport-7537-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 |
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> (cherry picked from commit 0788feb)
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> Signed-off-by: Bharathwaj G <[email protected]>
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]>
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> (cherry picked from commit 0788feb)
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> (cherry picked from commit 0788feb)
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> (cherry picked from commit 0788feb) Add version check to skip test for 1.x bwc branches Signed-off-by: Suraj Singh <[email protected]>
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> (cherry picked from commit 0788feb) Add version check to skip test for 1.x bwc branches Signed-off-by: Suraj Singh <[email protected]>
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> (cherry picked from commit 0788feb) Add version check to skip test for 1.x bwc branches Signed-off-by: Suraj Singh <[email protected]>
…test (#7537) (#7626) * [Segment Replication] Added mixed and rolling upgrade bwc test (#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> (cherry picked from commit 0788feb) Add version check to skip test for 1.x bwc branches Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Wait for shard relocation before building node to shard allocation map (#7876) * [Segment Replication] Wait for shard relocation before building node to shard allocation map Signed-off-by: Suraj Singh <[email protected]> * Remove unused imports Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> Fix imports Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Update segrep bwc tests to verify replica checkpoints and skip tests for 1.x bwc versions (#8203) * [Segment Replication] Verify segment replication stats in bwc test Signed-off-by: Suraj Singh <[email protected]> * Log cleanup Signed-off-by: Suraj Singh <[email protected]> * Spotless check Signed-off-by: Suraj Singh <[email protected]> * Add version check to skip test for 1.x bwc branches Signed-off-by: Suraj Singh <[email protected]> * Add version check to skip test for 1.x bwc branches for mixed clusters Signed-off-by: Suraj Singh <[email protected]> * Add version string in build to identify bwc version Signed-off-by: Suraj Singh <[email protected]> * Use correct bwc version string Signed-off-by: Suraj Singh <[email protected]> * Address review comments from #7626 Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> [Segment Replication] Use _cat/segments vs index stats + _search to verify doc count Signed-off-by: Suraj Singh <[email protected]> Self review Signed-off-by: Suraj Singh <[email protected]> remove unused imports Signed-off-by: Suraj Singh <[email protected]> Handle 0 doc count segments Signed-off-by: Suraj Singh <[email protected]> Add missing import statement Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Update bwc test to rely on segments for verification (#8267) * [Segment Replication] Use _cat/segments vs index stats + _search to verify doc count Signed-off-by: Suraj Singh <[email protected]> Self review Signed-off-by: Suraj Singh <[email protected]> remove unused imports Signed-off-by: Suraj Singh <[email protected]> Handle 0 doc count segments Signed-off-by: Suraj Singh <[email protected]> * Use 1 minute timeout for assertBusy validations and comments Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> Add missing import statement Signed-off-by: Suraj Singh <[email protected]> * Fix missing import Signed-off-by: Suraj Singh <[email protected]> * Logger change Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]>
…earch-project#7537) * [Segment Replication] Added mixed cluster bwc test Signed-off-by: Suraj Singh <[email protected]> * Remove unnecessary gradle task for segrep Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * Spotless fix Signed-off-by: Suraj Singh <[email protected]> * [Segment Replication] Rolling upgrade test Signed-off-by: Suraj Singh <[email protected]> * PR feedback and cleanup Signed-off-by: Suraj Singh <[email protected]> * Verify replica doc count only when it is assigned Signed-off-by: Suraj Singh <[email protected]> * Remove wait for yellow cluster Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Suraj Singh <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Related Issues
#7490
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.