ignore all exceptions from ILM cleanup in RestTestCase
@@ -534,13 +534,9 @@ public abstract class ESRestTestCase extends ESTestCase {
Response response = adminClient().performRequest(new Request("GET", "/_ilm/policy"));
policies = entityAsMap(response);
} catch (ResponseException e) {
- int statusCode = e.getResponse().getStatusLine().getStatusCode();
- if (RestStatus.METHOD_NOT_ALLOWED.getStatus() == statusCode || RestStatus.BAD_REQUEST.getStatus() == statusCode) {
// If bad request returned, ILM is not enabled.
return;
}
- throw e;
- }
if (policies == null || policies.isEmpty()) {
return;
