Skip to content
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 Store] Fix couple of Remote Store flaky test and use bulk api for ingestion #9190

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

gbbafna
Copy link
Collaborator

@gbbafna gbbafna commented Aug 9, 2023

Description

Fixes two flaky tests :

  1. testStaleCommitDeletion - There was an extra refresh/no op refresh , which can decrease/increase the metadata file count. Disabled implicit refresh and factored in no op refreshes as well
  2. testFailoverWhileIndexing : There can be an Updated response as well on new docs creation . Factored in same .

Use of bulk indexing API to make Remote ITs faster as well .

Related

Resolves #8658
Resolves #9130

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@gbbafna gbbafna changed the title Fix couple of Remote Store flaky test and use bulk api for ingestion [Remote Store] Fix couple of Remote Store flaky test and use bulk api for ingestion Aug 9, 2023
@github-actions

This comment was marked as outdated.

@opensearch-trigger-bot
Copy link
Contributor

Compatibility status:



> Task :checkCompatibility
Incompatible components: [https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/performance-analyzer.git]
Compatible components: [https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/reporting.git]

BUILD SUCCESSFUL in 28m 10s

@opensearch-trigger-bot
Copy link
Contributor

Compatibility status:



> Task :checkCompatibility
Incompatible components: [https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/performance-analyzer.git]
Compatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git]

BUILD SUCCESSFUL in 34m 18s

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

Gradle Check (Jenkins) Run Completed with:

@gbbafna
Copy link
Collaborator Author

gbbafna commented Aug 9, 2023

Failed tests in earlier gradle run are not related


Tests with failures:
 - org.opensearch.cluster.routing.ShardMovementStrategyTests.testClusterGreenAfterPartialRelocationNoPreferenceShardMovementPrimaryFirstEnabled
 - org.opensearch.cluster.routing.ShardMovementStrategyTests.classMethod
 - org.opensearch.cluster.routing.allocation.BalancedSingleShardTests.classMethod
 - org.opensearch.cluster.routing.allocation.MaxRetryAllocationDeciderTests.classMethod
 

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

Gradle Check (Jenkins) Run Completed with:

@linuxpi
Copy link
Collaborator

linuxpi commented Aug 9, 2023

LGTM. 1 minor comment. Also, gradle check is failing in UTs and i dont see ITs ran in the logs

@Poojita-Raj
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

* **RESULT:** FAILURE ❌

* **URL:** https://build.ci.opensearch.org/job/gradle-check/22235/

* **CommitID:** [18371e8](https://github.com/opensearch-project/OpenSearch/commit/18371e8d2219fef6b04877acc4cfde09d4415283)
  Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green.
  Is the failure [a flaky test](https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md#flaky-tests) unrelated to your change?

#6179
#9178

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #9190 (3e42a66) into main (d014c4d) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #9190      +/-   ##
============================================
- Coverage     71.08%   71.07%   -0.01%     
+ Complexity    57347    57324      -23     
============================================
  Files          4770     4770              
  Lines        270548   270548              
  Branches      39563    39563              
============================================
- Hits         192328   192303      -25     
- Misses        61985    62034      +49     
+ Partials      16235    16211      -24     

see 445 files with indirect coverage changes

@sachinpkale sachinpkale merged commit d06926c into opensearch-project:main Aug 10, 2023
@sachinpkale sachinpkale added the backport 2.x Backport to 2.x branch label Aug 10, 2023
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

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-9190-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d06926c863c4a1ad0caf9e87f43fc7c8d6369b8c
# Push it to GitHub
git push --set-upstream origin backport/backport-9190-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 base branch is 2.x and the compare/head branch is backport/backport-9190-to-2.x.

neetikasinghal pushed a commit to neetikasinghal/OpenSearch that referenced this pull request Aug 10, 2023
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
mch2 pushed a commit to mch2/OpenSearch that referenced this pull request Aug 11, 2023
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
(cherry picked from commit d06926c)
mch2 pushed a commit to mch2/OpenSearch that referenced this pull request Aug 11, 2023
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
(cherry picked from commit d06926c)
Signed-off-by: Marc Handalian <handalm@amazon.com>
mch2 pushed a commit to mch2/OpenSearch that referenced this pull request Aug 11, 2023
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
(cherry picked from commit d06926c)
Signed-off-by: Marc Handalian <handalm@amazon.com>
mch2 added a commit that referenced this pull request Aug 11, 2023
linuxpi pushed a commit to linuxpi/OpenSearch that referenced this pull request Aug 14, 2023
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
linuxpi pushed a commit to linuxpi/OpenSearch that referenced this pull request Aug 16, 2023
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
kaushalmahi12 pushed a commit to kaushalmahi12/OpenSearch that referenced this pull request Sep 12, 2023
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
brusic pushed a commit to brusic/OpenSearch that referenced this pull request Sep 25, 2023
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: Ivan Brusic <ivan.brusic@flocksafety.com>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
… for ingestion (opensearch-project#9190)

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
4 participants