Skip to content

Mapping deprecations warnings in logs but not in warning headers #23947

@cbuescher

Description

@cbuescher

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

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions