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

[8.x] Avoid hoarding cluster state references during rollover (#124107) #124265

Merged

Conversation

nielsbauman
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

By keeping a list of all the rollover results in a rollover request
batch, we were keeping references to all the intermediate cluster states
that we built. We've seen this list take up ~1.4GB with 600 rollover
requests in one batch.

We only kept the list of results to compute the "reason" for the
allocation reroute, so we can easily drop the cluster state reference
from the list and only keep what we need.

Fixes elastic#123893

(cherry picked from commit ff6465b)

# Conflicts:
#	server/src/main/java/org/elasticsearch/action/admin/indices/rollover/LazyRolloverAction.java
@nielsbauman nielsbauman added :Data Management/Indices APIs APIs to create and manage indices and templates >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) Team:Data Management Meta label for data/management team labels Mar 6, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine
Copy link
Collaborator

Hi @nielsbauman, I've created a changelog YAML for you.

@elasticsearchmachine elasticsearchmachine merged commit 851c7cb into elastic:8.x Mar 6, 2025
15 checks passed
@nielsbauman nielsbauman deleted the backport/8.x/pr-124107 branch March 6, 2025 20: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!) >bug :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants