Skip to content

[7.x] ILM ClusterStateWaitThresholdBreachTests cycles due to shrunk-shards-allocated (#75695)#75729

Merged
andreidan merged 1 commit intoelastic:7.xfrom
andreidan:backport/7x-ilm-shrink-threshold-test
Jul 27, 2021
Merged

[7.x] ILM ClusterStateWaitThresholdBreachTests cycles due to shrunk-shards-allocated (#75695)#75729
andreidan merged 1 commit intoelastic:7.xfrom
andreidan:backport/7x-ilm-shrink-threshold-test

Conversation

@andreidan
Copy link
Copy Markdown
Contributor

ClusterStateWaitThresholdBreachTests is meant to simulate a shrink
action failure that lasts past the threshold we configured such that ILM
rewinds, deletes an attempted shrunk index and retries (successfully the
2nd time).

We used to simulated this failure by configuring a shrink action with a
number of shards higher than the index number of shards. We're now
adding a step that'll validate against this misconfiguration so we
needed a new way to integration test this shrink action cycle.

This makes the test use a high number of replicas configuration for the
managed index, blocking it in the shrunk-shards-allocated step,
instead of the previous failure in the shrink step.

(cherry picked from commit 3b2973d)
Signed-off-by: Andrei Dan andrei.dan@elastic.co

Backport of #75695

…-allocated` (elastic#75695)

ClusterStateWaitThresholdBreachTests is meant to simulate a shrink
action failure that lasts past the threshold we configured such that ILM
rewinds, deletes an attempted shrunk index and retries (successfully the
2nd time).

We used to simulated this failure by configuring a shrink action with a
number of shards higher than the index number of shards. We're now
adding a step that'll validate against this misconfiguration so we
needed a new way to integration test this shrink action cycle.

This makes the test use a high number of replicas configuration for the
managed index, blocking it in the `shrunk-shards-allocated` step,
instead of the previous failure in the `shrink` step.

(cherry picked from commit 3b2973d)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>

# Conflicts:
#	x-pack/plugin/ilm/src/internalClusterTest/java/org/elasticsearch/xpack/ilm/ClusterStateWaitThresholdBreachTests.java
@andreidan andreidan added >test Issues or PRs that are addressing/adding tests :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. backport labels Jul 27, 2021
@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Jul 27, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@andreidan andreidan merged commit a92a5b4 into elastic:7.x Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. Team:Data Management (obsolete) DO NOT USE. This team no longer exists. >test Issues or PRs that are addressing/adding tests v7.15.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants