-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Shard allocator leaves unassigned shards #5908
Comments
I am currently working on #16987, while working on its integration tests I found this Issue annotated here : Line 367 in 89e4727
I tried to reproducing this. Followed the reproduce steps
All shards are assigned as expected. @mch2 @jainankitk Line 367 in 89e4727
|
@vinaykpud - Did you try running the test until failure? Few runs might succeed, but there are cases where it gets stuck |
@jainankitk yes, I have tried this test: Line 368 in 89e4727
|
Describe the bug
Shard allocation does not consider all combinations especially for Zone Aware allocation leaving unassigned shards which could be assigned otherwise. This is observed more commonly for clusters with total_shards_per_node setting enabled.
To Reproduce
Steps to reproduce the behavior:
Create 3 node cluster with each node in different AZ. Now create index with 3 shards and 1 replica. Now, 1 of the shard might not get assigned:
Expected behavior
The shard allocator should be able to pick any other alternative assignment like:
Plugins
NA
Screenshots
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: