-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Upgrade assistant]Upgrade assistant doesn't format the date format exception and doesn't show remediation steps #205289
Comments
Pinging @elastic/kibana-core (Team:Core) |
Given that the dates need to be reindexed with a custom script, ES should not raise a deprecation for the index compatibility format but instead raise a deprecation for the custom date formatting. That way a user will be prompted the fix their data and in the process also resolve the index compatibility version |
I can reproduce the problem described in the issue, but what's strange is like in the screenshot, there is no deprecation warning from Elasticsearch for the incompatible date format specifiers. I've reached out to the Elasticsearch team for clarification. If we want to solve this bug we'd need upstream changes to Elasticsearch:
These two things will ensure that upgrade assistant guides users to reindex with a script that solves the date format specifier problem and so at the same time address the incompatible index version. |
Extracting out the underlying reindex failure:
Regarding the setup:
Are you sure the documents causing reindexing to fail didn't exist prior to 8.16 in this scenario? 8.16 uses JDK 23 and CLDR. There should be no problem reindexing, since nothing has changed then between 8.16 and 8.18. Note that the need for reindex was not driven by the COMPAT->CLDR change; that is independent, and migration assistant doesn't know anything about it. The change to CLDR was forced upon ES by a change in the JDK, that's why it happened in a minor version. The reindex message you see should be because the index was created in 7.x. If the index was created in 8.16, upgrade assistant should not suggest reindexing is required. Since the CLDR change occurred in a minor release, there's not a whole lot we can do here. The deprecation logging was put in place to help where it could, in the specific case of 8.15 where COMPAT was still used.
The date format specifiers in question are not incompatible, per se. They are valid specifiers, and can continue to be used.
The index is incompatible though, it needs to be reindexed. In this case it needs manual reindexing, but the warning is still valid and should be shown to the user. Could the migration assistant have a custom warning for this case? We could tweak the incompatible index version deprecation to check for problematic fields and emit the different "deprecation". |
Yes, I had to ingest the documents in 7.17 when reproducing this.
Agreed. Upgrade assistant renders the deprecation, |
Kibana version: 8.18.0 Snapshot
Elasticsearch version: 8.18.0 Snapshot
Browser version: Chrome latest
Browser OS version: OS X
Original install method (e.g. download page, yum, from source, etc.): from snapshots
Describe the bug: If user has indices with older compat format fields, upgrade assistant shows critical deprecation issue for this and reindex fails (requires manual script correction(https://www.elastic.co/blog/locale-changes-elasticsearch-8-16-jdk-23) - but doesn't show any remediation steps on the assistant itself.
Steps to reproduce:
Ingest some sample documents:
Error:
The text was updated successfully, but these errors were encountered: