client: restart on recoverable StartTask errors

Fixes restarting on recoverable errors from StartTask.

Ports TestTaskRunner_Run_RecoverableStartError from 0.8 which discovered
the bug.
This commit is contained in:
Michael Schurter
2019-02-13 15:34:17 -08:00
parent 414532adab
commit cf66e25e57
2 changed files with 44 additions and 1 deletions

View File

@@ -656,7 +656,9 @@ func (tr *TaskRunner) runDriver() error {
return fmt.Errorf("failed to start task after driver exited unexpectedly: %v", err)
}
} else {
return fmt.Errorf("driver start failed: %v", err)
// Do *NOT* wrap the error here without maintaining
// whether or not is Recoverable.
return err
}
}