-
Notifications
You must be signed in to change notification settings - Fork 919
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
[BUG] homepage doc migration issue #7024
Comments
I produced the issue. We do see a warning
migrate success from 2.11 to 2.13 even with the msg
2024-06-18_11-54-43.mp4compared with revert home #6065. Here the migration is skipped so we can't detect any mapping conflict. Though migration success, it is a false positive. 2024-06-18_11-48-23.mp4 |
[Issue]In OpenSearch Dashboards, saved object migrations ensure that the data structures (mappings) used by the application are up-to-date and consistent with the current codebase. When a migration is triggered, the system checks for any changes in the index mappings. If a change is detected, it attempts to create a new index and migrate the saved objects. However, if there are any broken documents or conflicting mappings in the existing index, this process can fail, resulting in errors like resource_already_exists_exception when the system attempts to create an index that already exists. In our case, a change to the properties.homepage mapping is causing the migration to be triggered repeatedly, which can lead to such errors. This issue can be particularly problematic for customers, as it may disrupt their workflows and data operations. [Tmp Solution]The objective of the temporary solution is to unblock the migration process while still allowing the system to detect and respond to other critical mapping changes. However, it is important to note that skipping this migration might allow broken documents to be migrated, which can have some impact. We modify the requiresMigration function to ignore changes to the properties.homepage mapping specifically, changing from |
So the TLDR here is that whenever mappings change during a version upgrade a migration is triggered, and if your .kibana index was corrupted, the migration failed. And the reason we dont see this as often is because migrations havent been triggered in previous OSD upgrades because no mapping changed. What would happen if the mapping didnt change? would the migration still fail? if the changed mapping the only reason the upgrade failed? |
Describe the bug
During migration I'm getting
Detected mapping change in \"properties.homepage\"
error.To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
OpenSearch Version
2.13
Dashboards Version
2.13
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: