This is an automated email from the ASF dual-hosted git repository.
ab pushed a commit to branch jira/solr-15300
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/jira/solr-15300 by this push:
new 7b1ab04 SOLR-15300: Fix issues from review.
7b1ab04 is described below
commit 7b1ab04bd56be123fa454b8cac271d728abfa724
Author: Andrzej Bialecki <[email protected]>
AuthorDate: Thu May 6 14:45:47 2021 +0200
SOLR-15300: Fix issues from review.
---
solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java | 6 +++---
solr/solr-ref-guide/src/cluster-node-management.adoc | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java
b/solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java
index 959068c..b95c3c2 100644
--- a/solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java
+++ b/solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java
@@ -54,13 +54,13 @@ public class ClusterStatus {
GREEN,
/** Some replicas down, leader exists. */
YELLOW,
- /** Many replicas down, leader exists. */
+ /** Most replicas down, leader exists. */
ORANGE,
- /** No leader or most replicas down. */
+ /** No leader or all replicas down. */
RED;
public static final float ORANGE_LEVEL = 0.5f;
- public static final float RED_LEVEL = 0.1f;
+ public static final float RED_LEVEL = 0.0f;
public static Health calcShardHealth(float fractionReplicasUp, boolean
hasLeader) {
if (hasLeader) {
diff --git a/solr/solr-ref-guide/src/cluster-node-management.adoc
b/solr/solr-ref-guide/src/cluster-node-management.adoc
index 85d384b..1de124e 100644
--- a/solr/solr-ref-guide/src/cluster-node-management.adoc
+++ b/solr/solr-ref-guide/src/cluster-node-management.adoc
@@ -36,9 +36,9 @@ the percentage of active replicas (`active`):
`YELLOW`::
`100% > active > 50%`, AND there's a shard leader.
`ORANGE`::
-`50% >= active > 1%`, AND there's a shard leader.
+`50% >= active > 0%`, AND there's a shard leader.
`RED`::
-`1% >= active`, *OR* there's no shard leader.
+No active replicas *OR* there's no shard leader.
The collection health state is reported as the worst state of any shard, e.g.
for a
collection with all shards GREEN except for one YELLOW the collection health
will be