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

Issue deprecation warnings for preconfigured delimited_payload_filter #43684

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

romseygeek
Copy link
Contributor

#26625 deprecated delimited_payload_filter and added tests to check
that warnings would be emitted when both a normal and pre-configured
filter were used. Unfortunately, due to a bug in the Analyze API, the pre-
configured filter check was never actually triggered, and it turns out that
the deprecation warning was not in fact being emitted in this case.

#43568 fixed the Analyze API bug, which then surfaced this on backport.

This commit ensures that the preconfigured filter also emits the warnings
and triggers an error if a new index tries to use a preconfigured
delimited_payload_filter

@romseygeek romseygeek added >bug :Search Relevance/Analysis How text is split into tokens v7.3.0 labels Jun 27, 2019
@romseygeek romseygeek requested a review from cbuescher June 27, 2019 09:40
@romseygeek romseygeek self-assigned this Jun 27, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Should this also go back to the 7.2 branch?

@romseygeek
Copy link
Contributor Author

LGTM. Should this also go back to the 7.2 branch?

Yes, good idea

@romseygeek romseygeek merged commit 4882b93 into elastic:7.x Jun 27, 2019
@romseygeek romseygeek deleted the delimited-payload branch June 27, 2019 11:44
romseygeek added a commit that referenced this pull request Jun 27, 2019
…r is used (#43684)

that warnings would be emitted when both a normal and pre-configured
filter were used. Unfortunately, due to a bug in the Analyze API, the pre-
configured filter check was never actually triggered, and it turns out that
the deprecation warning was not in fact being emitted in this case.

This commit ensures that the preconfigured filter also emits the warnings
and triggers an error if a new index tries to use a preconfigured
delimited_payload_filter
pull bot pushed a commit to sadlil/elasticsearch that referenced this pull request Jun 27, 2019
elastic#41560 removed the delimited_payload_filter as part of a general
cleanup of pre-version 7 restrictions, but missed removing the
preconfigured version due to elastic#43684.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants