-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Mapping deprecations warnings in logs but not in warning headers #23947
Copy link
Copy link
Closed
Labels
:Core/Infra/SettingsSettings infrastructure and APIsSettings infrastructure and APIs:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>bugTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchv5.3.0
Description
Not sure this is a bug, but I'm looking at deprecation warnings when creating new indices (settings, mappings). When I use the following in Console:
PUT /test
{
"settings": {
"number_of_shards": 1,
"shadow_replicas": true,
"shared_filesystem": false
},
"mappings": {
"type": {
"properties": {
"field": {
"type": "string"
},
"field2": {
"type": "long",
"store" : "no"
}
}
}
}
}
I see the following in elasticsearch_deprecation.log:
[2017-04-06T17:05:36,473][WARN ][o.e.d.c.s.Setting ] [index.shadow_replicas] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
[2017-04-06T17:05:36,481][WARN ][o.e.d.c.s.Setting ] [index.shared_filesystem] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
[2017-04-06T17:05:36,481][WARN ][o.e.d.c.s.Setting ] [index.shadow_replicas] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
[2017-04-06T17:05:36,487][WARN ][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [field]
[2017-04-06T17:05:36,488][WARN ][o.e.d.c.x.s.XContentMapValues] Expected a boolean [true/false] for property [field2.store] but got [no]
But I only get the following deprecation warnings in the warning headers (in Console):
#! Deprecation: [index.shadow_replicas] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
#! Deprecation: [index.shared_filesystem] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
I also checked the same with curl, I also get only the two setting warning headers there:
curl -H "Content-Type: application/json" -XPUT localhost:9200/test -d '{
"settings": {
"number_of_shards" : 1,
"shadow_replicas": true,
"shared_filesystem": false
},
"mappings": {
"type": {
"properties": {
"field" : { "type" : "long", "store" : "no" },
"field2" : { "type":"string"}
}
}
}
}' -i
Am I missing something?
Elasticsearch version: 5.3.0
Plugins installed: []
JVM version: 1.8.0_121
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Core/Infra/SettingsSettings infrastructure and APIsSettings infrastructure and APIs:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>bugTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchv5.3.0
Type
Fields
Give feedbackNo fields configured for issues without a type.