Skip to content

Commit 78dd787

Browse files
authored
Fix deployment_stats.state for target_allocation_count=0 (#114570)
1 parent a91a9a5 commit 78dd787

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/assignment

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/assignment/AllocationStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public AllocationStatus(StreamInput in) throws IOException {
8181
}
8282

8383
public State calculateState() {
84-
if (allocationCount == 0) {
84+
if (allocationCount == 0 && targetAllocationCount > 0) {
8585
return State.STARTING;
8686
}
8787
if (allocationCount < targetAllocationCount) {

0 commit comments

Comments
 (0)