Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

If a shard has no desired assignment then we cannot send the desired
balance over the wire or render it as JSON because the
ShardAssignmentView is null. This commit replaces the spurious
null with an empty object, and cleans up the tests a little to remove
some unnecessary mocking.

Backport of #97775

If a shard has no desired assignment then we cannot send the desired balance over the wire or render it as JSON because the `ShardAssignmentView` is `null`. This commit replaces the spurious `null` with an empty object, and cleans up the tests a little to remove some unnecessary mocking.
@DaveCTurner DaveCTurner added :Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.9.1 labels Jul 19, 2023
@elasticsearchmachine elasticsearchmachine merged commit 7136a06 into elastic:8.9 Jul 19, 2023
@DaveCTurner DaveCTurner deleted the 2023/07/19/desired-balance-npe-8.9 branch July 19, 2023 10:29
@rjernst rjernst added v8.9.0 and removed v8.9.1 labels Jul 21, 2023
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 :Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) v8.9.0

3 participants