Skip to content

Commit 67f1b02

Browse files
authored
Add an UpdateForV9/10 to reroute cluster state (#114213)
1 parent 58cc379 commit 67f1b02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/reroute/ClusterRerouteResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import org.elasticsearch.common.xcontent.ChunkedToXContentHelper;
2222
import org.elasticsearch.common.xcontent.ChunkedToXContentObject;
2323
import org.elasticsearch.core.RestApiVersion;
24+
import org.elasticsearch.core.UpdateForV10;
25+
import org.elasticsearch.core.UpdateForV9;
2426
import org.elasticsearch.rest.action.search.RestSearchAction;
2527
import org.elasticsearch.xcontent.ToXContent;
2628

@@ -43,6 +45,8 @@ public class ClusterRerouteResponse extends ActionResponse implements IsAcknowle
4345
/**
4446
* To be removed when REST compatibility with {@link org.elasticsearch.Version#V_8_6_0} / {@link RestApiVersion#V_8} no longer needed
4547
*/
48+
@UpdateForV9(owner = UpdateForV9.Owner.DISTRIBUTED_COORDINATION) // to remove from the v9 API only
49+
@UpdateForV10(owner = UpdateForV10.Owner.DISTRIBUTED_COORDINATION) // to remove entirely
4650
private final ClusterState state;
4751
private final RoutingExplanations explanations;
4852
private final boolean acknowledged;

0 commit comments

Comments
 (0)