Hi
If this question has already been asked I apologize and ask for the link to the post as I could not find it.
I am currently implementing a new plugin for Opensearch Dashboard. The plugin uses saved objects. Therefore, when starting the application (as expected) the migration of the .kibana index is executed:
However, if I now want to create a new saved object, I get the following error:
message: ‘mapping set to strict, dynamic introduction of [pluginSavedObject] within [_doc] is not allowed: strict_dynamic_mapping_exception: [strict_dynamic_mapping_exception] Reason: mapping set to strict, dynamic introduction of [pluginSavedObject] within [_doc] is not allowed’,
After trying several times, I realized that the .kibana_2 index has been migrated to a .kibana_3. The new .kibana_3 has the new mapping. However, I am logged into a tenant (admin_tenant). The corresponding index (.kibana_-152937574_admintenant_1) was not migrated, which is why the new saved object is missing in the mapping. The .kibana aliase still points to the .kibana_-152937574_admintenant_1 index.
Is this a bug? Is there a better way than manually creating a .kibana_-152937574_admintenant_2 index and performing a reindex?
Thank you very much
Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch Dashboard: 2.10