Skip to content

Fix ReactiveStorageIT#testScaleWhileShrinking#88630

Merged
fcofdez merged 3 commits intoelastic:mainfrom
fcofdez:fix-shrink-autoscaling-test
Jul 25, 2022
Merged

Fix ReactiveStorageIT#testScaleWhileShrinking#88630
fcofdez merged 3 commits intoelastic:mainfrom
fcofdez:fix-shrink-autoscaling-test

Conversation

@fcofdez
Copy link
Copy Markdown
Contributor

@fcofdez fcofdez commented Jul 20, 2022

This commit fixes ReactiveStorageIT#testScaleWhileShrinking, the
TestFileStore missed handling an exception while the total space
was calculated. This made the get node stats to fail therefore
the actual capacity was computed incorrectly. In addition to that,
when the shards are colocated, the index files that were part of
the other node take a while to get deleted. This made impossible
to allocate the shard anywhere, therefore the test failed in these
cases.

Closes #88430

This commit fixes ReactiveStorageIT#testScaleWhileShrinking, the
TestFileStore missed handling an exception while the total space
was calculated. This made the get node stats to fail therefore
the actual capacity was computed incorrectly. In addition to that,
when the shards are colocated, the index files that were part of
the other node take a while to get deleted. This made impossible
to allocate the shard anywhere, therefore the test failed in these
cases.

Closes elastic#88430
@fcofdez fcofdez added >test Issues or PRs that are addressing/adding tests :Distributed/Autoscaling Automatically adding or removing nodes in a cluster Team:Distributed Meta label for distributed team. v8.4.0 labels Jul 20, 2022
@elasticsearchmachine elasticsearchmachine changed the base branch from master to main July 22, 2022 23:04
@fcofdez fcofdez requested a review from henningandersen July 25, 2022 08:54
Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this.

@fcofdez fcofdez merged commit 71d5ad6 into elastic:main Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Autoscaling Automatically adding or removing nodes in a cluster Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] ReactiveStorageIT testScaleWhileShrinking failing

2 participants