3737import org .elasticsearch .index .shard .ShardId ;
3838import org .elasticsearch .index .translog .Translog ;
3939import org .elasticsearch .persistent .AllocatedPersistentTask ;
40+ import org .elasticsearch .persistent .PersistentTaskState ;
4041import org .elasticsearch .persistent .PersistentTasksCustomMetaData ;
4142import org .elasticsearch .persistent .PersistentTasksExecutor ;
42- import org .elasticsearch .tasks .Task ;
4343import org .elasticsearch .tasks .TaskId ;
4444import org .elasticsearch .threadpool .ThreadPool ;
4545import 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