-
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
[Concurrent Segment Search] Functional test coverage #9468
Labels
:test
Adding or fixing a test
Comments
i am working on this |
Functional Testing for Concurrent SearchOverviewAs part of functional testing for concurrent search, we need to validate that the different search operations are working asis without any regression. In order to ensure that, the tests are run across the following workloads: Different workloads in opensearch benchmarking (ref: link):
Cluster creationFollowing three clusters are created with the help ofopensearch-cluster-cdk :
cdk deploy "*" \ Data ingestionOn every cluster the benchmarking is run for all the workloads as follows:Cluster 1: neetiks-1-cs-enabled-slice0 opensearch-infra-stack-neetiks-1-cs-enabled-slice0.loadbalancerurl = opensearch-infra-stack-neetiks-1-cs-enabled-slice0.privateip = MIN_DISTRIBUTION=true #!/bin/sh Cluster 2: neetiks-1-cs-enabled-slice1 opensearch-infra-stack-neetiks-1-cs-enabled-slice1.loadbalancerurl = opensearch-infra-stack-neetiks-1-cs-enabled-slice1.privateip = MIN_DISTRIBUTION=true #!/bin/sh Cluster 3: neetiks-1-cs-disabled opensearch-infra-stack-neetiks-2-cs-disabled.loadbalancerurl = opensearch-infra-stack-neetiks-2-cs-disabled.privateip = MIN_DISTRIBUTION=true #!/bin/sh Search validation scriptimport json Results
ReindexingReindex nyc_taxis on c1:curl -XPOST http://$c1/_reindex?pretty -H 'Content-Type: application/json' -d '{ curl -XPUT http://$c1/reindexed_nyc_taxis/_settings -H 'Content-Type: application/json' -d '{ curl -XPOST http://$c1/_reindex?pretty -H 'Content-Type: application/json' -d '{ curl -XPUT http://$c1/reindexed_osmpolygons/_settings -H 'Content-Type: application/json' -d '{When running the aggs without defining the mappings, there is an exception: b'{\n "error" : {\n "root_cause" : [\n {\n "type" : "illegal_argument_exception",\n "reason" : "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [dropoff_datetime] in order to load field data by uninverting the inverted index. Note that this can use significant memory."\n }\n ],\n "type" : "search_phase_execution_exception",\n "reason" : "all shards failed",\n "phase" : "query",\n "grouped" : true,\n "failed_shards" : [\n {\n "shard" : 0,\n "index" : "reindexed_nyc_taxis",\n "node" : "NSGlIxLISR23LLs2U7w3bg",\n "reason" : {\n "type" : "illegal_argument_exception",\n "reason" : "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [dropoff_datetime] in order to load field data by uninverting the inverted index. Note that this can use significant memory."\n }\n }\n ],\n "caused_by" : {\n "type" : "illegal_argument_exception",\n "reason" : "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [dropoff_datetime] in order to load field data by uninverting the inverted index. Note that this can use significant memory.",\n "caused_by" : {\n "type" : "illegal_argument_exception",\n "reason" : "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [dropoff_datetime] in order to load field data by uninverting the inverted index. Note that this can use significant memory."\n }\n }\n },\n "status" : 400\n}\n' Creating another index with mappings predefined in c1: curl -XPUT http://$c1/reindexed_nyc_taxis2 -H 'Content-Type: application/json' -d '{After defining the mappings for the index reindexed_nyc_taxis2 , the validation script ran successfully.reindexing validation starting... Segrep/concurrent search enabled testingRun workload on the nyc_taxis workload with segrep enabled:Create cluster: export AWS_ACCOUNT=XXXXXXXX cdk deploy "*" \Cluster endpoint:
Run benchmark opensearch-benchmark execute-test \The validation script ran successfully on the segrep & concurrent search enabled indices keeping the baseline as the normal cluster with these features disabled. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the solution you'd like
This is a tracking issue to verify functionality of the concurrent segment search other than Java IT tests which is being enabled as part of separate issue #7440
We can use r5.xlarge instance type for below:
The text was updated successfully, but these errors were encountered: