Class ClusterRerouteUtils
java.lang.Object
org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteUtils
Utilities for invoking
TransportClusterRerouteAction in tests.-
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionexpectRerouteFailure(ElasticsearchClient client, AllocationCommand... allocationCommands) ExecuteTransportClusterRerouteActionwith the given (optional) sequence ofAllocationCommandinstances, asserts that it fails, and returns the resulting (unwrapped) exception.static voidreroute(ElasticsearchClient client, AllocationCommand... allocationCommands) ExecuteTransportClusterRerouteActionwith the given (optional) sequence ofAllocationCommandinstances.static voidExecuteTransportClusterRerouteActionto reset the allocation failure counter.
-
Method Details
-
reroute
ExecuteTransportClusterRerouteActionwith the given (optional) sequence ofAllocationCommandinstances. Asserts that this succeeds. -
rerouteRetryFailed
ExecuteTransportClusterRerouteActionto reset the allocation failure counter. Asserts that this succeeds. -
expectRerouteFailure
public static Exception expectRerouteFailure(ElasticsearchClient client, AllocationCommand... allocationCommands) ExecuteTransportClusterRerouteActionwith the given (optional) sequence ofAllocationCommandinstances, asserts that it fails, and returns the resulting (unwrapped) exception.
-