Skip to content

Commit

Permalink
Merge pull request hashicorp#10849 from benbuzbee/benbuz/fix-destroy
Browse files Browse the repository at this point in the history
Don't treat a failed recover + successful destroy as a successful recover
  • Loading branch information
schmichael authored and Ben Buzbee committed Jul 28, 2021
1 parent 831fc02 commit a337fe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/10849.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
drivers: Fixed bug where Nomad incorrectly reported tasks as recovered successfully even when they were not.
```
3 changes: 1 addition & 2 deletions client/allocrunner/taskrunner/task_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -1079,10 +1079,9 @@ func (tr *TaskRunner) restoreHandle(taskHandle *drivers.TaskHandle, net *drivers
"error", err, "task_id", taskHandle.Config.ID)
}

return false
}

return true
return false
}

// Update driver handle on task runner
Expand Down

0 comments on commit a337fe0

Please sign in to comment.