-
Notifications
You must be signed in to change notification settings - Fork 25.2k
add explicit tests for geo_shape with doc values on old indices #52861
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
Conversation
Pinging @elastic/es-analytics-geo (:Analytics/Geo) |
} | ||
|
||
public void test7xIndexWith8Index() { | ||
SearchResponse response = client().prepareSearch(IDX_NAME_7x, IDX_NAME) |
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.
Not sure if am reading this correctly. If you mix index with different versions then we do not fail? Is this the expected behavior?
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.
I think this is intentional? We fail shards that do not have doc-values, but since the other index is valid, the aggregation result is consistent.
It errors out if queried against an index with no geo_shape field at all.
I will double check other aggregations to see what is the most consistent behavior. I assume it is the same as is shown here
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.
I see, and this assertion checks that some shards were not successful:
assertThat(response.getSuccessfulShards(), lessThan(response.getTotalShards()));
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
This PR adds tests to verify behavior of geo-aggregations on indices that have
doc-values disabled by default due to an old index version.
the version bounds to 7.x can be updated after merge of
geoshape-doc-values
into master