parent
4a08928c47
commit
8aeab0bec9
|
@ -10,6 +10,7 @@ import org.elasticsearch.action.ActionListener;
|
|||
import org.elasticsearch.action.DocWriteResponse.Result;
|
||||
import org.elasticsearch.action.support.ActionFilters;
|
||||
import org.elasticsearch.action.support.HandledTransportAction;
|
||||
import org.elasticsearch.action.support.WriteRequest;
|
||||
import org.elasticsearch.client.Client;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.tasks.Task;
|
||||
|
@ -31,6 +32,7 @@ public class TransportDeletePipelineAction extends HandledTransportAction<Delete
|
|||
client.prepareDelete()
|
||||
.setIndex(Logstash.LOGSTASH_CONCRETE_INDEX_NAME)
|
||||
.setId(request.id())
|
||||
.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
|
||||
.execute(
|
||||
ActionListener.wrap(
|
||||
deleteResponse -> listener.onResponse(new DeletePipelineResponse(deleteResponse.getResult() == Result.DELETED)),
|
||||
|
|
|
@ -9,6 +9,7 @@ package org.elasticsearch.xpack.logstash.action;
|
|||
import org.elasticsearch.action.ActionListener;
|
||||
import org.elasticsearch.action.support.ActionFilters;
|
||||
import org.elasticsearch.action.support.HandledTransportAction;
|
||||
import org.elasticsearch.action.support.WriteRequest;
|
||||
import org.elasticsearch.client.Client;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.tasks.Task;
|
||||
|
@ -31,6 +32,7 @@ public class TransportPutPipelineAction extends HandledTransportAction<PutPipeli
|
|||
.setIndex(Logstash.LOGSTASH_CONCRETE_INDEX_NAME)
|
||||
.setId(request.id())
|
||||
.setSource(request.source(), request.xContentType())
|
||||
.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
|
||||
.execute(
|
||||
ActionListener.wrap(
|
||||
indexResponse -> listener.onResponse(new PutPipelineResponse(indexResponse.status())),
|
||||
|
|
|
@ -50,7 +50,6 @@ public class LogstashSystemIndexIT extends ESRestTestCase {
|
|||
);
|
||||
}
|
||||
|
||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/62413")
|
||||
public void testPipelineCRUD() throws Exception {
|
||||
// put pipeline
|
||||
final String pipelineJson = getPipelineJson();
|
||||
|
|
Loading…
Reference in New Issue