Package org.apache.solr.common.cloud
Enum Class Slice.State
- All Implemented Interfaces:
Serializable,Comparable<Slice.State>,java.lang.constant.Constable
- Enclosing class:
Slice
The slice's state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe normal/default state of a shard.When a shard is split, the new sub-shards are put in that state while the split operation is in progress.A shard is put in that state after it has been successfully split.Sub-shards of a split shard are put in that state, when they need to create replicas in order to meet the collection's replication factor.Sub-shards of a split shard are put in that state when the split is deemed failed by the overseer even though all replicas are active because either the leader node is no longer live or has a different ephemeral owner (zk session id). -
Method Summary
Modifier and TypeMethodDescriptionstatic Slice.StateConverts the state string to a State instance.toString()static Slice.StateReturns the enum constant of this class with the specified name.static Slice.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
The normal/default state of a shard. -
INACTIVE
A shard is put in that state after it has been successfully split. See the reference guide for more details. -
CONSTRUCTION
When a shard is split, the new sub-shards are put in that state while the split operation is in progress. It's also used when the shard is undergoing data restoration. A shard in this state still receives update requests from the parent shard leader, however does not participate in distributed search. -
RECOVERY
Sub-shards of a split shard are put in that state, when they need to create replicas in order to meet the collection's replication factor. A shard in that state still receives update requests from the parent shard leader, however does not participate in distributed search. -
RECOVERY_FAILED
Sub-shards of a split shard are put in that state when the split is deemed failed by the overseer even though all replicas are active because either the leader node is no longer live or has a different ephemeral owner (zk session id). Such conditions can potentially lead to data loss. See SOLR-9438 for details. A shard in that state will neither receive update requests from the parent shard leader, nor participate in distributed search.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<Slice.State>
-
getState
Converts the state string to a State instance.
-