Skip to content

Commit

Permalink
Fix deployment_stats.state for target_allocation_count=0 (elastic#114570
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jan-elastic authored Oct 11, 2024
1 parent a91a9a5 commit 78dd787
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public AllocationStatus(StreamInput in) throws IOException {
}

public State calculateState() {
if (allocationCount == 0) {
if (allocationCount == 0 && targetAllocationCount > 0) {
return State.STARTING;
}
if (allocationCount < targetAllocationCount) {
Expand Down

0 comments on commit 78dd787

Please sign in to comment.