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] Shallow snapshot V2 restore with source_remote_translog_repository fails with unknown parameter #16188

Closed
sachinpkale opened this issue Oct 4, 2024 · 0 comments
Assignees
Labels

Comments

@sachinpkale
Copy link
Member

Describe the bug

  • In order to allow restore of snapshot on another domain, for shallow snapshot v2, a field was added to RestoreSnapshotRequest: sourceRemoteTranslogRepository
  • But this field is not getting recognised in the restore API and fails with unknown parameter error.

Related component

Storage:Snapshots

To Reproduce

  1. Create cluster C_1, enable shallow snapshot V2 and take snapshot S_1
  2. Create another cluster C_2, register snapshot, segment and translog repos with same settings as that of C_1.
  3. Trigger restore API.
% curl -X POST "localhost:9200/_snapshot/backup-snapshot/S_1/_restore?pretty" -H 'Content-Type: application/json' -d'
{
  "indices": "my-index-1",
  "source_remote_store_repository": "backup-segment",
  "source_remote_translog_repository": "backup-translog"
}
'
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Unknown parameter source_remote_translog_repository"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Unknown parameter source_remote_translog_repository"
  },
  "status" : 400
}

Expected behavior

  • Restore should not fail

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant