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

BWC record checker tool #46149

Closed
imotov opened this issue Aug 29, 2019 · 3 comments
Closed

BWC record checker tool #46149

imotov opened this issue Aug 29, 2019 · 3 comments
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes Meta

Comments

@imotov
Copy link
Contributor

imotov commented Aug 29, 2019

During the switch to BKD shapes and the recent geo_shape refactoring effort we have discovered a set of issues and inconsistencies in the way some corner cases are handled for different geometries and formats. Some examples: #43916, #43837, #43775, #43851, #35813.

We would like to fix these issues but at the same realize that fixing these bugs and inconsistencies might affect the users that are currently accidentally rely on them. Since most of these issues can be classified as bugs, we would like roll out the change that will fix these issues in one of 7.x releases instead of waiting for 8.0. However, we don't have a mechanism to notify users about breaking changes in minor releases. Moreover the current upgrade checker might not be the best suited for this particular use case since in order to check for the presence of records affected by these changes will will have to scan all records.

In the team discussion of this issue we came to the conclusion that we need to introduce a stand alone utility that can be executed by users in order to detect the records affected by the change. We would like to extend this discussion to a broader group to see if other options or solutions available.

@imotov imotov added discuss :Analytics/Geo Indexing, search aggregations of geo points and shapes Meta labels Aug 29, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo

@imotov
Copy link
Contributor Author

imotov commented Sep 6, 2019

During the discussion in FixItFriday, we couldn't reach a conclusion that such tool is necessary and should be implemented. Concerns about overheard of maintaining this tool were raised. While we have other instances where such tool could have been beneficial (such as date checks) we typically don't provide such tools. One of the main technical concerns was practicality of such tool considering the requirement for full index scan. The overhead of running the checker on a large index would be comparable to re-indexing of such index, so a recommendation to just reindex might be a more efficient solution for users concerned that their index contain affected records.

We agreed that fixing these bugs in a minor version should be acceptable. We didn't reach a conclusion if we should maintain the old behavior for indices that were created before the bug fixes were introduced, it seems like that would create too much maintenance overhead considering that we are already maintaining "legacy" and BKD-backed shape indexing logic.

@imotov imotov removed the discuss label Sep 6, 2019
@nknize
Copy link
Contributor

nknize commented Sep 19, 2019

This is a good synopsis and I agree with the concerns raised. +1 to not worry about maintaining a checker tool and just fix the bugs in the minor version with documented breaking changes.

@imotov imotov closed this as completed Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes Meta
Projects
None yet
Development

No branches or pull requests

3 participants