-
Notifications
You must be signed in to change notification settings - Fork 24.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
Expanding and refactoring the vector rolling upgrade tests #107020
Expanding and refactoring the vector rolling upgrade tests #107020
Conversation
Pinging @elastic/es-search (Team:Search) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/VectorSearchIT.java
Show resolved
Hide resolved
"Float vector search is not supported on this version", | ||
getOldClusterTestVersion().onOrAfter(FLOAT_VECTOR_SEARCH_VERSION) | ||
); | ||
if (isOldCluster()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One silly question as I'm not really familiar with this new framework. Will this be invoked during all steps in a strict order (old cluster / mixed / upgraded) so with this check here we ensure that the index creation will only run once?
"type": "dense_vector", | ||
"dims": 3, | ||
"element_type": "byte", | ||
"index": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add a byte-flat test case?
response = search(searchRequest); | ||
assertThat(extractValue(response, "hits.total.value"), equalTo(2)); | ||
hits = extractValue(response, "hits.hits"); | ||
assertThat(hits.get(0).get("_id"), equalTo("2")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it'd be useful to add a small comment on why the first result is different and/or set explicit similarity (as that could be subject to change in-between releases) ? Or do we want to use the defaults ?
qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/VectorSearchIT.java
Show resolved
Hide resolved
Thanks @benwtrent ! Added some comments, mostly for my understanding! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@elasticmachine update branch |
This commit removes the legacy yaml rolling upgrade tests for vectors to the new rolling upgrade package.
Also, it adds rolling upgrade tests for
int8_hnsw
.