Skip to content

ignore_dynamic_beyond_limit has variable default value, conflicting values when queried #136333

@paheath

Description

@paheath

Elasticsearch Version

8.19

Installed Plugins

No response

Java Version

bundled

OS Version

eck

Problem Description

This document states that the default value of index.mapping.total_fields.ignore_dynamic_beyond_limit is false, but under some conditions, like using logsdb data stream type, the default value will be true. It would be clearer if the first document also outlined that under some normal conditions, other than a user explicitly setting a non-default value, a different default will be set.

Additionally, when querying this default setting for a logdb datastream, under some conditions it will return true and others it will return false. The actual behavior appears to be true. See repro steps for details.

Steps to Reproduce

Create a logsdb data stream and leave ignore_dynamic_beyond_limit unset.

Query the default setting for ignore_dynamic_beyond_limit via GET /<stream>/_settings/index.mapping.total_fields.ignore_dynamic_beyond_limit?include_defaults=true. For all indexes in the stream it will return that the default value is false, but it should return true.

Query all default settings via GET /<stream>/_settings?include_defaults=true. For all indexes in the stream it will return that the default value is true.

Logs (if relevant)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions