Merge pull request #6518 from egernst/ctr-stress-exec-fixup

containerd-stress: start task ctr before starting execs
This commit is contained in:
Michael Crosby
2022-02-07 11:47:53 -05:00
committed by GitHub

View File

@@ -63,6 +63,12 @@ func (w *execWorker) exec(ctx, tctx context.Context) {
logrus.WithError(err).Error("wait exec container's task")
return
}
if err := task.Start(ctx); err != nil {
logrus.WithError(err).Error("exec container start failure")
return
}
spec, err := c.Spec(ctx)
if err != nil {
logrus.WithError(err).Error("failed to get spec")