Unable to restart replication after stopping

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 1.3.2

Describe the issue:
My issue is similar to this issue

After a replication job as been paused for a number of hours, stopping it does not delete the task and when attempting to recreate, it states a task is already running.

I do see several paused replication tasks when querying the tasks:
“action”: "indices:admin/plugins/replication/index/pause

However, they’re not cancellable.
“cancellable”: false,


Relevant Logs or Screenshots:
{“error”:{“root_cause”:[{“type”:“resource_already_exists_exception”,“reason”:“task with id {replication:index:index_v1} already exist”}],“type”:“resource_already_exists_exception”,“reason”:“task with id {replication:index:indesx_v1} already exist”},“status”:400

What can i do to restart these replication jobs. This occurs both on single index replication and on autofollow replication.


Can you try killing the tasks using tasks API?

Yes, but they’re not cacellable:

{“type”:“failed_node_exception”,“reason”:"Failed node
doesn’t support cancellation