-
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
Opening indices with broken index settings #26998
Comments
I opened #26955 to address the first case. I would like to have a broader discussion about this. |
We are going to proceed with the following plan:
|
@jasontedor Jason, I was studying your corresponding PR: https://github.com/elastic/elasticsearch/pull/26995/files and I don't understand that why when we create an IndexService in
Setting Thanks in advance for clarification. |
- remove the leniency on opening indices with unrecognized settings and instead such an index will be closed with the unrecognized settings archived - do not open any index with archived settings - users can remove archived settings via the wildcard archived - return "index_open_exception" 400 status code when trying to open an index with broken settings Relates to elastic#26995 Closes elastic#26998
- remove the leniency on opening indices with unrecognized settings and instead such an index will be closed with the unrecognized settings archived - do not open any index with archived settings - users can remove archived settings via the wildcard archived - return "index_open_exception" 400 status code when trying to open an index with broken settings Relates to elastic#26995 Closes elastic#26998
- remove the leniency on opening indices with unrecognized settings and instead such an index will be closed with the unrecognized settings archived - do not open any index with archived settings - users can remove archived settings via the wildcard archived - return illegal_argument_exception 400 status code when trying to open an index with broken/archived settings Relates to elastic#26995 Closes elastic#26998
- remove the leniency on opening indices with unrecognized settings and instead such an index will be closed with the unrecognized settings archived - do not open any index with archived settings - users can remove archived settings via the wildcard archived - return illegal_argument_exception 400 status code when trying to open an index with broken/archived settings Relates to elastic#26995 Closes elastic#26998
Is this still the case? |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Today we are lenient with index settings, we do the following things:
a. a user installs a plugin that provides an index setting
b. a user creates an index that uses that index setting
c. a user stops Elasticsearch to upgrade, so removes the plugin
d. the user upgrades Elasticsearch, and starts Elasticsearch not having reinstalled the plugin
e. Elasticsearch will archive the index setting and happily open the index
This leniency is dangerous and we should stop.
To be fair, the reason for the existence of this leniency in the upgrade case is for when we first introduced strict settings, we knew that we would see unrecognized settings on indices coming from 2.x into 5.x. We are past that point now. It's time to reconsider this leniency.
Relates #26995
The text was updated successfully, but these errors were encountered: