-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Add index_auto_create
flag per index request
#55267
Labels
Comments
Pinging @elastic/es-core-features (:Core/Features/Features) |
benwtrent
changed the title
Add
Add Apr 15, 2020
index_auto_create
flag per requestindex_auto_create
flag per index request
//CC @elastic/ml-core |
benwtrent
added a commit
that referenced
this issue
Jul 17, 2020
This commit adds the `require_alias` flag to requests that create new documents. This flag, when `true` prevents the request from automatically creating an index. Instead, the destination of the request MUST be an alias. When the flag is not set, or `false`, the behavior defaults to the `action.auto_create_index` settings. This is useful when an alias is required instead of a concrete index. closes #55267
benwtrent
added a commit
to benwtrent/elasticsearch
that referenced
this issue
Jul 17, 2020
This commit adds the `require_alias` flag to requests that create new documents. This flag, when `true` prevents the request from automatically creating an index. Instead, the destination of the request MUST be an alias. When the flag is not set, or `false`, the behavior defaults to the `action.auto_create_index` settings. This is useful when an alias is required instead of a concrete index. closes elastic#55267
benwtrent
added a commit
that referenced
this issue
Jul 17, 2020
…#59769) * Adding new `require_alias` option to indexing requests (#58917) This commit adds the `require_alias` flag to requests that create new documents. This flag, when `true` prevents the request from automatically creating an index. Instead, the destination of the request MUST be an alias. When the flag is not set, or `false`, the behavior defaults to the `action.auto_create_index` settings. This is useful when an alias is required instead of a concrete index. closes #55267
61 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following scenario has caused a number of bugs and many hours of frustrations:
To prevent this type of problem, it would be better to fail fast and allow the code paths to recover and optionally create the alias.
A flag on (bulk) index requests that disallow the index to be auto created would be LOVELY. This would help prevent silent failures and enable error handling paths fix the fast failures.
//CC @dakrone
The text was updated successfully, but these errors were encountered: