Skip to content

Conversation

@danielmitterdorfer
Copy link
Member

With this commit we set the mapping parameter dynamic to false for all profiling-related indices / index templates. Previously we were relying on the default behavior which would have mapped new fields dynamically. This is problematic for schema evolution. With this change we will still accept documents with additional fields but they will not be automatically added to the mappings.

With this commit we set the mapping parameter `dynamic` to `false` for
all profiling-related indices / index templates. Previously we were
relying on the default behavior which would have mapped new fields
dynamically. This is problematic for schema evolution. With this change
we will still accept documents with additional fields but they will not
be automatically added to the mappings.
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/profiling (Team:Universal Profiling)

"_source": {
"enabled": false
},
"dynamic": false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics are dynamically mapped currently, so if we switch this we'd also need to modify the mapping to explicitly add them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline let's make an exception for profiling-metrics as the current mapping makes sense and it's a datastream, meaning that old data would age eventually anyway. I'll revert the change for this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in fa15b6e.

Copy link
Member

@christos68k christos68k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danielmitterdorfer danielmitterdorfer merged commit 42b6976 into elastic:main Jun 19, 2023
@danielmitterdorfer danielmitterdorfer deleted the profiling-mappings branch June 19, 2023 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :UniversalProfiling/Application Elastic Universal Profiling REST APIs and infrastructure v8.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants