Counting shards was wrong if one of the indices was in the RED status
Closes #4528
This commit is contained in:
parent
998b7b3b86
commit
bbffeb1b39
|
@ -97,7 +97,6 @@ public class ClusterHealthResponse extends ActionResponse implements Iterable<Cl
|
|||
unassignedShards += indexHealth.unassignedShards;
|
||||
if (indexHealth.getStatus() == ClusterHealthStatus.RED) {
|
||||
status = ClusterHealthStatus.RED;
|
||||
break;
|
||||
} else if (indexHealth.getStatus() == ClusterHealthStatus.YELLOW && status != ClusterHealthStatus.RED) {
|
||||
status = ClusterHealthStatus.YELLOW;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue