Skip to content

Commit

Permalink
Fix compilation for transport actions now that task is required
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Jun 26, 2019
1 parent a26e302 commit 6393ac8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.TransportService;
import org.elasticsearch.xpack.core.snapshotlifecycle.SnapshotLifecycleMetadata;
Expand Down Expand Up @@ -56,7 +57,7 @@ protected DeleteSnapshotLifecycleAction.Response read(StreamInput in) throws IOE
}

@Override
protected void masterOperation(DeleteSnapshotLifecycleAction.Request request,
protected void masterOperation(Task task, DeleteSnapshotLifecycleAction.Request request,
ClusterState state,
ActionListener<DeleteSnapshotLifecycleAction.Response> listener) throws Exception {
clusterService.submitStateUpdateTask("delete-snapshot-lifecycle-" + request.getLifecycleId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.TransportService;
import org.elasticsearch.xpack.core.snapshotlifecycle.SnapshotLifecycleMetadata;
Expand Down Expand Up @@ -65,7 +66,7 @@ protected ExecuteSnapshotLifecycleAction.Response read(StreamInput in) throws IO
}

@Override
protected void masterOperation(final ExecuteSnapshotLifecycleAction.Request request,
protected void masterOperation(final Task task, final ExecuteSnapshotLifecycleAction.Request request,
final ClusterState state,
final ActionListener<ExecuteSnapshotLifecycleAction.Response> listener) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.TransportService;
import org.elasticsearch.xpack.core.snapshotlifecycle.SnapshotLifecycleMetadata;
Expand Down Expand Up @@ -59,7 +60,7 @@ protected GetSnapshotLifecycleAction.Response read(StreamInput in) throws IOExce
}

@Override
protected void masterOperation(final GetSnapshotLifecycleAction.Request request,
protected void masterOperation(final Task task, final GetSnapshotLifecycleAction.Request request,
final ClusterState state,
final ActionListener<GetSnapshotLifecycleAction.Response> listener) {
SnapshotLifecycleMetadata snapMeta = state.metaData().custom(SnapshotLifecycleMetadata.TYPE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.TransportService;
import org.elasticsearch.xpack.core.ClientHelper;
Expand Down Expand Up @@ -66,7 +67,7 @@ protected PutSnapshotLifecycleAction.Response read(StreamInput in) throws IOExce
}

@Override
protected void masterOperation(final PutSnapshotLifecycleAction.Request request,
protected void masterOperation(final Task task, final PutSnapshotLifecycleAction.Request request,
final ClusterState state,
final ActionListener<PutSnapshotLifecycleAction.Response> listener) {
SnapshotLifecycleService.validateRepositoryExists(request.getLifecycle().getRepository(), state);
Expand Down

0 comments on commit 6393ac8

Please sign in to comment.