Skip to content

Commit 3a6d02f

Browse files
committed
Adapt ShardFollowTasksExecutor after #31031
1 parent 22d1df9 commit 3a6d02f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardFollowTasksExecutor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
import org.elasticsearch.index.shard.ShardId;
3838
import org.elasticsearch.index.translog.Translog;
3939
import org.elasticsearch.persistent.AllocatedPersistentTask;
40+
import org.elasticsearch.persistent.PersistentTaskState;
4041
import org.elasticsearch.persistent.PersistentTasksCustomMetaData;
4142
import org.elasticsearch.persistent.PersistentTasksExecutor;
42-
import org.elasticsearch.tasks.Task;
4343
import org.elasticsearch.tasks.TaskId;
4444
import org.elasticsearch.threadpool.ThreadPool;
4545
import org.elasticsearch.xpack.ccr.Ccr;
@@ -105,7 +105,7 @@ protected AllocatedPersistentTask createTask(long id, String type, String action
105105
}
106106

107107
@Override
108-
protected void nodeOperation(AllocatedPersistentTask task, ShardFollowTask params, Task.Status status) {
108+
protected void nodeOperation(final AllocatedPersistentTask task, final ShardFollowTask params, final PersistentTaskState state) {
109109
ShardFollowNodeTask shardFollowNodeTask = (ShardFollowNodeTask) task;
110110
Client leaderClient = wrapClient(params.getLeaderClusterAlias() != null ?
111111
this.client.getRemoteClusterClient(params.getLeaderClusterAlias()) : this.client, params);
@@ -119,7 +119,7 @@ protected void nodeOperation(AllocatedPersistentTask task, ShardFollowTask param
119119
fetchGlobalCheckpoint(followerClient, params.getFollowShardId(),
120120
followGlobalCheckPoint -> {
121121
shardFollowNodeTask.updateProcessedGlobalCheckpoint(followGlobalCheckPoint);
122-
prepare(leaderClient, followerClient,shardFollowNodeTask, params, followGlobalCheckPoint, imdVersionChecker);
122+
prepare(leaderClient, followerClient, shardFollowNodeTask, params, followGlobalCheckPoint, imdVersionChecker);
123123
}, task::markAsFailed);
124124
} else {
125125
shardFollowNodeTask.markAsFailed(e);

0 commit comments

Comments
 (0)