Fixes due to changes in master branch.
This commit is contained in:
parent
602a0f183e
commit
e2e207687d
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.action.ingest;
|
package org.elasticsearch.action.ingest;
|
||||||
|
|
||||||
import org.elasticsearch.action.ActionRequest;
|
|
||||||
import org.elasticsearch.action.ActionRequestValidationException;
|
import org.elasticsearch.action.ActionRequestValidationException;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedRequest;
|
import org.elasticsearch.action.support.master.AcknowledgedRequest;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
|
@ -29,7 +28,7 @@ import java.io.IOException;
|
||||||
|
|
||||||
import static org.elasticsearch.action.ValidateActions.addValidationError;
|
import static org.elasticsearch.action.ValidateActions.addValidationError;
|
||||||
|
|
||||||
public class DeletePipelineRequest extends AcknowledgedRequest {
|
public class DeletePipelineRequest extends AcknowledgedRequest<DeletePipelineRequest> {
|
||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ public final class IngestActionFilter extends AbstractComponent implements Actio
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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)) {
|
if (IndexAction.NAME.equals(action)) {
|
||||||
assert request instanceof IndexRequest;
|
assert request instanceof IndexRequest;
|
||||||
IndexRequest indexRequest = (IndexRequest) request;
|
IndexRequest indexRequest = (IndexRequest) request;
|
||||||
|
@ -89,7 +89,7 @@ public final class IngestActionFilter extends AbstractComponent implements Actio
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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);
|
chain.proceed(action, response, listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ public final class IngestActionFilter extends AbstractComponent implements Actio
|
||||||
return Integer.MAX_VALUE;
|
return Integer.MAX_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
final static class BulkRequestModifier implements Iterator<ActionRequest> {
|
final static class BulkRequestModifier implements Iterator<ActionRequest<?>> {
|
||||||
|
|
||||||
final BulkRequest bulkRequest;
|
final BulkRequest bulkRequest;
|
||||||
final Set<Integer> failedSlots;
|
final Set<Integer> failedSlots;
|
||||||
|
|
|
@ -19,10 +19,8 @@
|
||||||
|
|
||||||
package org.elasticsearch.action.ingest;
|
package org.elasticsearch.action.ingest;
|
||||||
|
|
||||||
import org.elasticsearch.action.ActionRequest;
|
|
||||||
import org.elasticsearch.action.ActionRequestValidationException;
|
import org.elasticsearch.action.ActionRequestValidationException;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedRequest;
|
import org.elasticsearch.action.support.master.AcknowledgedRequest;
|
||||||
import org.elasticsearch.cluster.ack.AckedRequest;
|
|
||||||
import org.elasticsearch.common.bytes.BytesReference;
|
import org.elasticsearch.common.bytes.BytesReference;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
|
@ -31,7 +29,7 @@ import java.io.IOException;
|
||||||
|
|
||||||
import static org.elasticsearch.action.ValidateActions.addValidationError;
|
import static org.elasticsearch.action.ValidateActions.addValidationError;
|
||||||
|
|
||||||
public class PutPipelineRequest extends AcknowledgedRequest {
|
public class PutPipelineRequest extends AcknowledgedRequest<PutPipelineRequest> {
|
||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
private BytesReference source;
|
private BytesReference source;
|
||||||
|
|
|
@ -38,7 +38,7 @@ import java.util.Map;
|
||||||
import static org.elasticsearch.action.ValidateActions.addValidationError;
|
import static org.elasticsearch.action.ValidateActions.addValidationError;
|
||||||
import static org.elasticsearch.ingest.core.IngestDocument.MetaData;
|
import static org.elasticsearch.ingest.core.IngestDocument.MetaData;
|
||||||
|
|
||||||
public class SimulatePipelineRequest extends ActionRequest {
|
public class SimulatePipelineRequest extends ActionRequest<SimulatePipelineRequest> {
|
||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
private boolean verbose;
|
private boolean verbose;
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class PipelineExecutionService {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void execute(Iterable<ActionRequest> actionRequests,
|
public void execute(Iterable<ActionRequest<?>> actionRequests,
|
||||||
BiConsumer<IndexRequest, Throwable> itemFailureHandler, Consumer<Boolean> completionHandler) {
|
BiConsumer<IndexRequest, Throwable> itemFailureHandler, Consumer<Boolean> completionHandler) {
|
||||||
threadPool.executor(ThreadPool.Names.INDEX).execute(() -> {
|
threadPool.executor(ThreadPool.Names.INDEX).execute(() -> {
|
||||||
for (ActionRequest actionRequest : actionRequests) {
|
for (ActionRequest actionRequest : actionRequests) {
|
||||||
|
|
|
@ -211,7 +211,7 @@ public class IngestClientIT extends ESIntegTestCase {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Collection<Class<? extends Plugin>> getMockPlugins() {
|
protected Collection<Class<? extends Plugin>> getMockPlugins() {
|
||||||
return Collections.emptyList();
|
return Collections.singletonList(TestSeedPlugin.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class IngestPlugin extends Plugin {
|
public static class IngestPlugin extends Plugin {
|
||||||
|
|
|
@ -32,11 +32,6 @@ import java.util.Collection;
|
||||||
|
|
||||||
public class IngestGrokRestIT extends ESRestTestCase {
|
public class IngestGrokRestIT extends ESRestTestCase {
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Collection<Class<? extends Plugin>> nodePlugins() {
|
|
||||||
return pluginList(IngestGrokPlugin.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public IngestGrokRestIT(@Name("yaml") RestTestCandidate testCandidate) {
|
public IngestGrokRestIT(@Name("yaml") RestTestCandidate testCandidate) {
|
||||||
super(testCandidate);
|
super(testCandidate);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,11 +31,6 @@ import java.util.Collection;
|
||||||
|
|
||||||
public class IngestGeoIpRestIT extends ESRestTestCase {
|
public class IngestGeoIpRestIT extends ESRestTestCase {
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Collection<Class<? extends Plugin>> nodePlugins() {
|
|
||||||
return pluginList(IngestGeoIpPlugin.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public IngestGeoIpRestIT(@Name("yaml") RestTestCandidate testCandidate) {
|
public IngestGeoIpRestIT(@Name("yaml") RestTestCandidate testCandidate) {
|
||||||
super(testCandidate);
|
super(testCandidate);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue