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.x] Do not remove flood block from indices on nodes undergoing replacement (#78942) #79008

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Oct 12, 2021

Backports the following commits to 7.x:

elastic#78942)

This commit enhances `DiskThresholdMonitor` so that indices that have a flood-stage block will not
have the block removed while they reside on a node that is part of a "REPLACE"-type node shutdown.

This prevents a situation where a node is blocked due to disk usage, then during the replacement the
block is removed while shards are relocating to the target node, indexing occurs, and then the
target runs out of space due to the additional documents.

Relates to elastic#70338 and elastic#76247
# Conflicts:
#	server/src/test/java/org/elasticsearch/cluster/routing/allocation/DiskThresholdMonitorTests.java
@dakrone dakrone added backport :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown v7.16.0 labels Oct 12, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Oct 12, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@dakrone dakrone added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Oct 12, 2021
@elasticsearchmachine elasticsearchmachine merged commit 3b45d0a into elastic:7.x Oct 12, 2021
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 :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown Team:Core/Infra Meta label for core/infra team v7.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants