Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate TSDB _source mappers #106792

Conversation

original-brownbear
Copy link
Member

The tsdb source mappers now have a defined Mode by default so the deduplcation logic in the builder needs some adjustment. Found this in an SDH heap dump that had thousands of duplicate source field mappers in it all of a sudden. Also, we can save a little here (thought it only matters for non-default versions of this now) by using the empty string array constant for include and exclude list.

The tsdb source mappers now have a defined `Mode` by default so the
deduplcation logic in the builder needs some adjustment.
Found this in an SDH heap dump that had thousands of duplicate source field
mappers in it all of a sudden. Also, we can save a little here (thought
it only matters for non-default versions of this now) by using the empty
string array constant for include and exclude list.
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

thanks Armin 👍

@original-brownbear
Copy link
Member Author

npnp Martijn! :)

@original-brownbear original-brownbear merged commit 24e18f6 into elastic:main Mar 27, 2024
14 checks passed
@original-brownbear original-brownbear deleted the fix-duplicate-tsdb-source-mappers branch March 27, 2024 09:24
@original-brownbear original-brownbear restored the fix-duplicate-tsdb-source-mappers branch November 30, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants