Skip to content

Commit 3ce24d7

Browse files
transition info
1 parent 594f96f commit 3ce24d7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/ShardRoutingState.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,32 @@
1414
*/
1515
public enum ShardRoutingState {
1616
/**
17-
* The shard is not assigned to any node; any data which it contains is unavailable in the cluster.
17+
* The shard is not assigned to any node; any data which it contains is unavailable to the cluster.
18+
*
19+
* A shard transitions from {@link #UNASSIGNED} to {@link #INITIALIZING} when the master wants an assigned data node to create or start
20+
* recovering this shard copy.
1821
*/
1922
UNASSIGNED((byte) 1),
23+
2024
/**
2125
* The shard is assigned to a node and the recovery process has begun. The shard data is not yet available on the node initializing the
2226
* shard.
27+
*
28+
* A shard transitions from {@link #INITIALIZING} -> {@link #STARTED} when recovery is complete and the data node informs the master
29+
* that it is ready to serve requests.
2330
*/
2431
INITIALIZING((byte) 2),
32+
2533
/**
2634
* The shard is assigned to a specific data node and ready to accept indexing and search requests.
35+
*
36+
* A shard transitions from {@link #STARTED} -> {@link #RELOCATING} when the master wants to initialize the node elsewhere.
2737
*/
2838
STARTED((byte) 3),
39+
2940
/**
3041
* The shard is being reassigned away from one node to another node. This is the state of the shard on a source node when the shard is
31-
* being moved away to a target node. The target node will be initializing the shard and running recovery ({@link #INITIALIZING}).
42+
* being moved away to a new target node. The target node will be initializing the shard and running recovery ({@link #INITIALIZING}).
3243
*/
3344
RELOCATING((byte) 4);
3445

0 commit comments

Comments
 (0)