Skip to content

Removed setting index.mapper.dynamic can be set on v7+ indices #96075

@matt-monacelli

Description

@matt-monacelli

Elasticsearch Version

7.10.2

Installed Plugins

No response

Java Version

bundled

OS Version

AWS 7.10.2

Problem Description

After setting a deprecated setting index.mapper.dynamic to false, I am unable to remove the setting and it is preventing me from opening the index:

{ "error" : { "root_cause" : [ { "type" : "exception", "reason" : "Failed to verify index [events-000012/e57doKb8Qe2p-D-fOLUcNw]" } ], "type" : "exception", "reason" : "Failed to verify index [events-000012/e57doKb8Qe2p-D-fOLUcNw]", "caused_by" : { "type" : "illegal_argument_exception", "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0" } }, "status" : 500 }

Steps to Reproduce

  1. Set index setting index.mapper.dynamic to false
  2. close the index
  3. try to open the index

Logs (if relevant)

No response

Workaround

Restore the problematic index from snapshot, passing "ignore_index_settings": "index.mapper.dynamic" to the restore request to filter out the bad setting.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions