Skip to content

[7.x] Do not remove flood block from indices on nodes undergoing replacement (#78942)#79008

Merged
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-78942
Oct 12, 2021
Merged

[7.x] Do not remove flood block from indices on nodes undergoing replacement (#78942)#79008
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-78942

Conversation

@dakrone
Copy link
Copy Markdown
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
Copy Markdown
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