Skip to content

Commit

Permalink
Get shard node before attempting to relocate it.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Sep 5, 2024
1 parent cf14a2a commit 119d07c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/routing/cluster/reroute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ epilogues:
status: [200, 404]
chapters:
- synopsis: Shows the allocation of shards in a cluster.
id: shard
path: /_cluster/reroute
method: POST
response:
status: 200
output:
node: payload.state.routing_table.indices.movies.shards.0[0].node
- synopsis: Shows the allocation of shards in a cluster with parameters.
path: /_cluster/reroute
method: POST
Expand All @@ -49,7 +52,7 @@ chapters:
- move:
index: movies
shard: 0
from_node: opensearch-node1
from_node: ${shard.node}
to_node: opensearch-node2
response:
status: 200

0 comments on commit 119d07c

Please sign in to comment.