From ca04d81dd5728b5af10885b944bc79c29a2150c4 Mon Sep 17 00:00:00 2001 From: khandelwalbrijesh Date: Thu, 13 Jun 2019 13:33:42 +0530 Subject: [PATCH] Time out repair task issue fixed. --- .../CoordinatorService/src/RepairManagerHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PatchOrchestrationApplication/CoordinatorService/src/RepairManagerHelper.cs b/src/PatchOrchestrationApplication/CoordinatorService/src/RepairManagerHelper.cs index d3d8084..0156ad7 100644 --- a/src/PatchOrchestrationApplication/CoordinatorService/src/RepairManagerHelper.cs +++ b/src/PatchOrchestrationApplication/CoordinatorService/src/RepairManagerHelper.cs @@ -632,7 +632,8 @@ internal async Task TimeoutRepairTasks(CancellationToken cancellationToken) if (!nodeExists) { // If node does not exist now, there is no point in waiting on the task. - await UpdateRepairTaskState(task, nodeName, RepairTaskState.Completed, executorData.ExecutorTimeoutInMinutes, cancellationToken, nodeExists); + ServiceEventSource.Current.VerboseMessage("Cancelling repair task {0} which is in {1} state as the node {2} does not exist anymore.", task.TaskId, task.State, nodeName); + await this.CancelRepairTask(task); continue; }