diff --git a/core/src/main/java/org/elasticsearch/action/ingest/DeletePipelineRequest.java b/core/src/main/java/org/elasticsearch/action/ingest/DeletePipelineRequest.java index a18f13680a5..f0188c663d6 100644 --- a/core/src/main/java/org/elasticsearch/action/ingest/DeletePipelineRequest.java +++ b/core/src/main/java/org/elasticsearch/action/ingest/DeletePipelineRequest.java @@ -19,7 +19,6 @@ package org.elasticsearch.action.ingest; -import org.elasticsearch.action.ActionRequest; import org.elasticsearch.action.ActionRequestValidationException; import org.elasticsearch.action.support.master.AcknowledgedRequest; import org.elasticsearch.common.io.stream.StreamInput; @@ -29,7 +28,7 @@ import java.io.IOException; import static org.elasticsearch.action.ValidateActions.addValidationError; -public class DeletePipelineRequest extends AcknowledgedRequest { +public class DeletePipelineRequest extends AcknowledgedRequest { private String id; diff --git a/core/src/main/java/org/elasticsearch/action/ingest/IngestActionFilter.java b/core/src/main/java/org/elasticsearch/action/ingest/IngestActionFilter.java index 440e1f37aab..fe9cb3c5f44 100644 --- a/core/src/main/java/org/elasticsearch/action/ingest/IngestActionFilter.java +++ b/core/src/main/java/org/elasticsearch/action/ingest/IngestActionFilter.java @@ -55,7 +55,7 @@ public final class IngestActionFilter extends AbstractComponent implements Actio } @Override - public void apply(Task task, String action, ActionRequest request, ActionListener listener, ActionFilterChain chain) { + public void apply(Task task, String action, ActionRequest request, ActionListener listener, ActionFilterChain chain) { if (IndexAction.NAME.equals(action)) { assert request instanceof IndexRequest; IndexRequest indexRequest = (IndexRequest) request; @@ -89,7 +89,7 @@ public final class IngestActionFilter extends AbstractComponent implements Actio } @Override - public void apply(String action, ActionResponse response, ActionListener listener, ActionFilterChain chain) { + public void apply(String action, ActionResponse response, ActionListener listener, ActionFilterChain chain) { chain.proceed(action, response, listener); } @@ -131,7 +131,7 @@ public final class IngestActionFilter extends AbstractComponent implements Actio return Integer.MAX_VALUE; } - final static class BulkRequestModifier implements Iterator { + final static class BulkRequestModifier implements Iterator> { final BulkRequest bulkRequest; final Set failedSlots; diff --git a/core/src/main/java/org/elasticsearch/action/ingest/PutPipelineRequest.java b/core/src/main/java/org/elasticsearch/action/ingest/PutPipelineRequest.java index c993d1606d6..6b199b2aa90 100644 --- a/core/src/main/java/org/elasticsearch/action/ingest/PutPipelineRequest.java +++ b/core/src/main/java/org/elasticsearch/action/ingest/PutPipelineRequest.java @@ -19,10 +19,8 @@ package org.elasticsearch.action.ingest; -import org.elasticsearch.action.ActionRequest; import org.elasticsearch.action.ActionRequestValidationException; import org.elasticsearch.action.support.master.AcknowledgedRequest; -import org.elasticsearch.cluster.ack.AckedRequest; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; @@ -31,7 +29,7 @@ import java.io.IOException; import static org.elasticsearch.action.ValidateActions.addValidationError; -public class PutPipelineRequest extends AcknowledgedRequest { +public class PutPipelineRequest extends AcknowledgedRequest { private String id; private BytesReference source; diff --git a/core/src/main/java/org/elasticsearch/action/ingest/SimulatePipelineRequest.java b/core/src/main/java/org/elasticsearch/action/ingest/SimulatePipelineRequest.java index ccc51e7bdd7..48961f0e41f 100644 --- a/core/src/main/java/org/elasticsearch/action/ingest/SimulatePipelineRequest.java +++ b/core/src/main/java/org/elasticsearch/action/ingest/SimulatePipelineRequest.java @@ -38,7 +38,7 @@ import java.util.Map; import static org.elasticsearch.action.ValidateActions.addValidationError; import static org.elasticsearch.ingest.core.IngestDocument.MetaData; -public class SimulatePipelineRequest extends ActionRequest { +public class SimulatePipelineRequest extends ActionRequest { private String id; private boolean verbose; diff --git a/core/src/main/java/org/elasticsearch/ingest/PipelineExecutionService.java b/core/src/main/java/org/elasticsearch/ingest/PipelineExecutionService.java index 7a382ca1ce7..4fac72899c1 100644 --- a/core/src/main/java/org/elasticsearch/ingest/PipelineExecutionService.java +++ b/core/src/main/java/org/elasticsearch/ingest/PipelineExecutionService.java @@ -52,7 +52,7 @@ public class PipelineExecutionService { }); } - public void execute(Iterable actionRequests, + public void execute(Iterable> actionRequests, BiConsumer itemFailureHandler, Consumer completionHandler) { threadPool.executor(ThreadPool.Names.INDEX).execute(() -> { for (ActionRequest actionRequest : actionRequests) { diff --git a/core/src/test/java/org/elasticsearch/ingest/IngestClientIT.java b/core/src/test/java/org/elasticsearch/ingest/IngestClientIT.java index ad295e66a95..3eab68ec3eb 100644 --- a/core/src/test/java/org/elasticsearch/ingest/IngestClientIT.java +++ b/core/src/test/java/org/elasticsearch/ingest/IngestClientIT.java @@ -211,7 +211,7 @@ public class IngestClientIT extends ESIntegTestCase { @Override protected Collection> getMockPlugins() { - return Collections.emptyList(); + return Collections.singletonList(TestSeedPlugin.class); } public static class IngestPlugin extends Plugin { diff --git a/modules/ingest-grok/src/test/java/org/elasticsearch/ingest/grok/IngestGrokRestIT.java b/modules/ingest-grok/src/test/java/org/elasticsearch/ingest/grok/IngestGrokRestIT.java index 7073c4ede56..3f4bdf1f8b9 100644 --- a/modules/ingest-grok/src/test/java/org/elasticsearch/ingest/grok/IngestGrokRestIT.java +++ b/modules/ingest-grok/src/test/java/org/elasticsearch/ingest/grok/IngestGrokRestIT.java @@ -32,11 +32,6 @@ import java.util.Collection; public class IngestGrokRestIT extends ESRestTestCase { - @Override - protected Collection> nodePlugins() { - return pluginList(IngestGrokPlugin.class); - } - public IngestGrokRestIT(@Name("yaml") RestTestCandidate testCandidate) { super(testCandidate); } diff --git a/plugins/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/IngestGeoIpRestIT.java b/plugins/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/IngestGeoIpRestIT.java index fed53456f0b..0e4d1ee4b2b 100644 --- a/plugins/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/IngestGeoIpRestIT.java +++ b/plugins/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/IngestGeoIpRestIT.java @@ -31,11 +31,6 @@ import java.util.Collection; public class IngestGeoIpRestIT extends ESRestTestCase { - @Override - protected Collection> nodePlugins() { - return pluginList(IngestGeoIpPlugin.class); - } - public IngestGeoIpRestIT(@Name("yaml") RestTestCandidate testCandidate) { super(testCandidate); }