opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.7k stars 899 forks source link

[BUG] Migration check on same version throws error while scaling Dashboards. #1303

Open mihirsoni opened 2 years ago

mihirsoni commented 2 years ago

Describe the bug

Since OpenSource Dashboards has been forked and changed it's version to 1.0 the current migration logic checks the version and halt the startup.

To Reproduce Steps to reproduce the behavior:

Expected behavior It should not throw this error

OpenSearch Version 1.0

Dashboards Version 1.0

Plugins

All plugins (FGAC included)

Additional context

Here is sample log error

{"type":"log","@timestamp":"2022-03-01T20:23:12Z","tags":["error","plugins","securityDashboards"],"pid":9630,"message":"Error: Index .kibana_-1085563064_some_random_name_1 belongs to a version of OpenSearch Dashboards that cannot be automatically migrated. Reset it or use the X-Pack upgrade assistant.\n    at assertIsSupportedIndex at Object.fetchInfo (rc/core/server/saved_objects/migrations/core/opensearch_index.js:82:10)\n    at process._tickCallback (internal/process/next_tick.js:68:7)"}
ahopp commented 2 years ago

@mihirsoni Following up on this. Can you verify the cluster was health at the the the node was add?

Additionally, can you verify the mappings were correct and healthy? Our assumption is yes, but wanted to make sure.