-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Fix standard filter BWC check to allow for cacheing bug #62649
Fix standard filter BWC check to allow for cacheing bug #62649
Conversation
Pinging @elastic/es-search (:Search/Analysis) |
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 left one comment. Thanks for tackling this so quickly!
@@ -181,7 +181,7 @@ public boolean requiresAnalysisSettings() { | |||
// Add "standard" for old indices (bwc) | |||
preConfiguredTokenFilters.register( "standard", | |||
PreConfiguredTokenFilter.elasticsearchVersion("standard", true, (reader, version) -> { | |||
if (version.before(Version.V_7_0_0)) { | |||
if (version.before(Version.V_7_6_0)) { |
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.
Can you add a comment here so that we don't forget why it's 7.6 and not 7.0 ?
@elasticmachine update branch |
The `standard` tokenfilter was removed by #33310, and should have been unuseable in any indexes created since 7.0. However, a cacheing bug fixed by #51092 meant that it was still possible in certain circumstances to create indexes referencing the standard filter in versions up to 7.5.2. Our checks in AnalysisModule still refer to 7.0.0, however, meaning that a cluster that contains one of these rogue indexes cannot be upgraded. This commit adjusts the AnalysisModule checks so that we only refuse to build a mapping referring to standard filter if the index created version is 7.6 or later. Fixes #62644
The `standard` tokenfilter was removed by #33310, and should have been unuseable in any indexes created since 7.0. However, a cacheing bug fixed by #51092 meant that it was still possible in certain circumstances to create indexes referencing the standard filter in versions up to 7.5.2. Our checks in AnalysisModule still refer to 7.0.0, however, meaning that a cluster that contains one of these rogue indexes cannot be upgraded. This commit adjusts the AnalysisModule checks so that we only refuse to build a mapping referring to standard filter if the index created version is 7.6 or later. Fixes #62644
The
standard
tokenfilter was removed by #33310, and should have beenunuseable in any indexes created since 7.0. However, a cacheing bug fixed
by #51092 meant that it was still possible in certain circumstances to create
indexes referencing the
standard
filter in versions up to 7.5.2. Our checksin
AnalysisModule
still refer to 7.0.0, however, meaning that a cluster thatcontains one of these rogue indexes cannot be upgraded.
This commit adjusts the AnalysisModule checks so that we only refuse to
build a mapping referring to
standard
filter if the index created version is7.6 or later.
Fixes #62644