-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Elasticsearch node on 7.0 alpha is not booting (Upgrade from 6.1.2) #37429
Comments
Pinging @elastic/es-search |
Thanks for bringing this up @shamzeer, I'm working on a fix for this for 7.0 |
Thanks very much for considering this. |
Notes: I originally thought we would be able to drop the My branch with the fix and unit test as well as rolling upgrade test (which fails) is at |
@dakrone The approach looks good to me. I would just ensure that |
This commit restores a noop version of the AllFieldMapper that is instanciated only for indices created in 6x. We need this metadata field mapper to be present in this version in order to allow the upgrade of indices that explicitly disable _all (enabled: false). The mapping of these indices contains a reference to the _all field that we cannot remove in 7 so we'll need to keep this metadata mapper in 7x. Since indices created in 6x will not be compatible with 8, we'll remove this noop mapper in the next major version. Closes elastic#37429
This commit restores a noop version of the AllFieldMapper that is instanciated only for indices created in 6x. We need this metadata field mapper to be present in this version in order to allow the upgrade of indices that explicitly disable _all (enabled: false). The mapping of these indices contains a reference to the _all field that we cannot remove in 7 so we'll need to keep this metadata mapper in 7x. Since indices created in 6x will not be compatible with 8, we'll remove this noop mapper in the next major version. Closes #37429
@shamzeer we'd like to thank you for your contribution to 7.0! do you mind dropping an email to [email protected] so we can arrange to send you out a gift? :) |
Elasticsearch version (bin/elasticsearch --version): 7.0.0 alpha1
Plugins installed: [analysis-phonetic, ingest-attachment]
JVM version (java -version): 1.8.0.181
OS version (uname -a if on a Unix-like system): Windows 2012 R2
Description of the problem including expected versus actual behavior: We have disabled "_all" field in our mappings in ElasticSearch 6.1.2. We have created indices and indexed data into it. The following is an example of the mapping.
{
"testindex": {
"mappings": {
"type": {
"_all": {
"enabled": false
},
"properties": {
"title": {
"type": "text"
},
"description": {
"type": "text"
}
}
}
}
}
}
Everything is fine with ElasticSearch 6.1.2. But when we upgrade to Elasticsearch 7.0.0 alpha 1, ElasticSearch boot up failed with the following error.
org.elasticsearch.index.mapper.MapperParsingException: Root mapping definition has unsupported parameters: [_all : {enabled=false}]
Is there a way to ignore it (_all) while booting up?
Or is there a way to update the mapping to remove the _all field?
Looking for a solution other than mandating re-index of data.
Please provide your suggestions. Thanks.
The text was updated successfully, but these errors were encountered: