Skip to content
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] Cannot restore ES 6.x index into OpenSearch2.x but the migration doc says it should work #11737

Open
xiaoyuan0821 opened this issue Jan 4, 2024 · 1 comment · Fixed by opensearch-project/documentation-website#6973
Assignees
Labels
documentation Improvements or additions to documentation Storage:Snapshots

Comments

@xiaoyuan0821
Copy link

Describe the bug

This migration doc https://opensearch.org/docs/2.11/upgrade-to/snapshot-migrate/ says we can restore Elasticsearch OSS 6.x indexes into OpenSearch 2.x, actually this doesn't work.

Related component

Other

To Reproduce

  1. Take a snapshot of ES 6.x version
  2. Try to restore to OpenSearch 2.11.1 cluster
POST /_snapshot/my_backup/snapshot_1/_restore
{
  "indices": "data*",
  "ignore_unavailable": true,
  "include_global_state": false,
  "rename_pattern": "(.+)",
  "rename_replacement": "$1"
}
  1. See error
{
  "error": {
    "root_cause": [
      {
        "type": "snapshot_restore_exception",
        "reason": "[my_backup:snapshot_1/gvvMqKRXRk-C1BjLIjGLoQ] cannot restore index [data3] because it cannot be upgraded"
      }
    ],
    "type": "snapshot_restore_exception",
    "reason": "[my_backup:snapshot_1/gvvMqKRXRk-C1BjLIjGLoQ] cannot restore index [data3] because it cannot be upgraded",
    "caused_by": {
      "type": "illegal_state_exception",
      "reason": "The index [[data3/HYh8yLTQTwygtBVus4Wvjg]] was created with version [6.5.4] but the minimum compatible version is OpenSearch 1.0.0 (or Elasticsearch 7.0.0). It should be re-indexed in OpenSearch 1.x (or Elasticsearch 7.x) before upgrading to 2.11.0."
    }
  },
  "status": 500
}

Expected behavior

Should restore success

Additional Details

Plugins
Default plugins

@xiaoyuan0821 xiaoyuan0821 added bug Something isn't working untriaged labels Jan 4, 2024
@github-actions github-actions bot added the Other label Jan 4, 2024
@ticheng-aws
Copy link
Contributor

Hi @xiaoyuan0821, the problem with snapshot restore occurs due to the use of a different Lucene version in your ES 6.x, which is not compatible with OpenSearch 2.x. One action item we can take here is to enhance the document's specificity regarding version compatibility for snapshot restore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Storage:Snapshots
Projects
Status: Planned work items
4 participants