37
37
import org .elasticsearch .index .shard .ShardId ;
38
38
import org .elasticsearch .index .translog .Translog ;
39
39
import org .elasticsearch .persistent .AllocatedPersistentTask ;
40
+ import org .elasticsearch .persistent .PersistentTaskState ;
40
41
import org .elasticsearch .persistent .PersistentTasksCustomMetaData ;
41
42
import org .elasticsearch .persistent .PersistentTasksExecutor ;
42
- import org .elasticsearch .tasks .Task ;
43
43
import org .elasticsearch .tasks .TaskId ;
44
44
import org .elasticsearch .threadpool .ThreadPool ;
45
45
import org .elasticsearch .xpack .ccr .Ccr ;
@@ -105,7 +105,7 @@ protected AllocatedPersistentTask createTask(long id, String type, String action
105
105
}
106
106
107
107
@ 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 ) {
109
109
ShardFollowNodeTask shardFollowNodeTask = (ShardFollowNodeTask ) task ;
110
110
Client leaderClient = wrapClient (params .getLeaderClusterAlias () != null ?
111
111
this .client .getRemoteClusterClient (params .getLeaderClusterAlias ()) : this .client , params );
@@ -119,7 +119,7 @@ protected void nodeOperation(AllocatedPersistentTask task, ShardFollowTask param
119
119
fetchGlobalCheckpoint (followerClient , params .getFollowShardId (),
120
120
followGlobalCheckPoint -> {
121
121
shardFollowNodeTask .updateProcessedGlobalCheckpoint (followGlobalCheckPoint );
122
- prepare (leaderClient , followerClient ,shardFollowNodeTask , params , followGlobalCheckPoint , imdVersionChecker );
122
+ prepare (leaderClient , followerClient , shardFollowNodeTask , params , followGlobalCheckPoint , imdVersionChecker );
123
123
}, task ::markAsFailed );
124
124
} else {
125
125
shardFollowNodeTask .markAsFailed (e );
0 commit comments