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

Fix tests for concurrent search #11117

Closed
wants to merge 0 commits into from

Conversation

Gankris96
Copy link
Contributor

@Gankris96 Gankris96 commented Nov 6, 2023

Description

This change ensures that the indexRandomForConcurrentSearch function, that is used to create more segments for concurrent search tests is invoked from the tests within this PR to test concurrent search use-cases where multiple slices are created based on segment count.
The change affects the following tests -

MetadataFetchingIT.java
SortFromPluginIT.java
SuggestSearchIT.java
SourceFetchingIT.testSourceDefaultBehavior
GeoDistanceIT.testGeoDistanceFilter
FieldSortIT.testTrackScores
SearchScrollIT.testScrollRewrittenToMatchNoDocs

Related Issues

#10247

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

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.

Copy link
Contributor

github-actions bot commented Nov 6, 2023

Gradle Check (Jenkins) Run Completed with:

Copy link
Contributor

github-actions bot commented Nov 6, 2023

Compatibility status:

Checks if related components are compatible with change 0ba5d58

Incompatible components

Incompatible components: [https:/opensearch-project/performance-analyzer.git]

Skipped components

Compatible components

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

@jed326
Copy link
Collaborator

jed326 commented Nov 6, 2023

@Gankris96 can you you signoff your commit & check the spotless failure?
For ex.
git commit --amend --signoff --author="Jay Deng <email>" --date=now
./gradlew :server:spotlessApply (ref: https://build.ci.opensearch.org/job/gradle-check/29631/consoleText)

@@ -746,6 +746,7 @@ public void testScrollRewrittenToMatchNoDocs() {
client().prepareIndex("test").setId("2").setSource("created_date", "2020-01-02").get();
client().prepareIndex("test").setId("3").setSource("created_date", "2020-01-03").get();
client().admin().indices().prepareRefresh("test").get();
indexRandomForConcurrentSearch( "test");
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove extra space

Copy link
Contributor

github-actions bot commented Nov 6, 2023

Gradle Check (Jenkins) Run Completed with:

@neetikasinghal
Copy link
Contributor

Run ./gradlew :server:spotlessApply to fix the gradle check failures

Copy link
Contributor

github-actions bot commented Nov 7, 2023

Gradle Check (Jenkins) Run Completed with:

Copy link
Contributor

github-actions bot commented Nov 7, 2023

Gradle Check (Jenkins) Run Completed with:

Copy link
Contributor

github-actions bot commented Nov 7, 2023

Gradle Check (Jenkins) Run Completed with:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants