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

[7.17] Simplify and optimize deduplication of RepositoryData for a non-caching repository instance (#91851) (#91866) #92661

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

original-brownbear
Copy link
Member

This makes use of the new deduplicator infrastructure to move to more efficient deduplication mechanics.
The existing solution hardly ever deduplicated because it would only deduplicate after the repository entered a consistent state. The adjusted solution is much simpler, in that it simply deduplicates such that only a single loading of RepositoryData will ever happen at a time, fixing memory issues from massively concurrent loading of the repo data as described in #89952.

closes #89952

backport of #91851

…-caching repository instance (elastic#91851) (elastic#91866)

* Simplify and optimize deduplication of RepositoryData for a non-caching repository instance (elastic#91851)

This makes use of the new deduplicator infrastructure to move to more
efficient deduplication mechanics.
The existing solution hardly ever deduplicated because it would only
deduplicate after the repository entered a consistent state. The
adjusted solution is much simpler, in that it simply deduplicates such
that only a single loading of `RepositoryData` will ever happen at a
time, fixing memory issues from massively concurrent loading of the repo
data as described in elastic#89952.

closes elastic#89952

* fix compile
@original-brownbear original-brownbear added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Jan 4, 2023
@original-brownbear original-brownbear changed the title [8.6] Simplify and optimize deduplication of RepositoryData for a non-caching repository instance (#91851) (#91866) [7.17] Simplify and optimize deduplication of RepositoryData for a non-caching repository instance (#91851) (#91866) Jan 4, 2023
@elasticsearchmachine elasticsearchmachine merged commit 7221c6a into elastic:7.17 Jan 4, 2023
@original-brownbear original-brownbear deleted the 91851-7.x branch January 4, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v7.17.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants