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

[Remote Store] Fail index creation with error message if repository does not exist #4403

Open
sachinpkale opened this issue Sep 5, 2022 · 0 comments
Labels
enhancement Enhancement or improvement to existing feature or request Storage:Remote

Comments

@sachinpkale
Copy link
Member

Is your feature request related to a problem? Please describe.
If we create a remote store enabled index without creating repository first, index creation fails but does not provide any reason to understand the failure.

curl -X PUT "localhost:9200/my-index-1?pretty" -H 'Content-Type: application/json' -d' 
{
  "settings": {
    "index": {
      "number_of_shards": 1,
      "number_of_replicas": 1,
      "replication": {
        "type": "SEGMENT"
      },
      "remote_store": {
        "enabled": true
      }
    }
  }
}
'

{
  "acknowledged" : true,
  "shards_acknowledged" : false,
  "index" : "my-index-1"
}

If repository does not exist, index creation should fail fast and should provide clear reason of failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Storage:Remote
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants