Skip to content

Commit

Permalink
fixing data setup for knn yaml tests (elastic#111794)
Browse files Browse the repository at this point in the history
We should do set up just in the test as that is the only place that uses
this index. This way we get around any weird bwc checks around
previously required parameters.

Additionally, this adjusts the bwc version skip as the code fix has been
backported.

closes: elastic#111765 closes:
elastic#111766 closes:
elastic#111767 closes:
elastic#111768
  • Loading branch information
benwtrent authored and davidkyle committed Sep 5, 2024
1 parent 16ad80c commit 13ee1cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 0 additions & 2 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ tests:
- class: org.elasticsearch.tdigest.ComparisonTests
method: testSparseGaussianDistribution
issue: https://github.com/elastic/elasticsearch/issues/111721
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
issue: https://github.com/elastic/elasticsearch/issues/111765
- class: org.elasticsearch.upgrades.FullClusterRestartIT
method: testSnapshotRestore {cluster=OLD}
issue: https://github.com/elastic/elasticsearch/issues/111777
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ setup:
type: hnsw
m: 16
ef_construction: 200

- do:
indices.create:
index: test_empty
body:
mappings:
properties:
vector:
type: dense_vector


- do:
index:
index: test
Expand Down Expand Up @@ -530,8 +519,16 @@ setup:
---
"kNN search on empty index should return 0 results and not an error":
- requires:
cluster_features: "gte_v8.16.0"
reason: 'Error fixed in 8.16.0'
cluster_features: "gte_v8.15.1"
reason: 'Error fixed in 8.15.1'
- do:
indices.create:
index: test_empty
body:
mappings:
properties:
vector:
type: dense_vector
- do:
search:
index: test_empty
Expand Down

0 comments on commit 13ee1cd

Please sign in to comment.