Merge pull request #6518 from egernst/ctr-stress-exec-fixup
containerd-stress: start task ctr before starting execs
This commit is contained in:
commit
2a588a619e
@ -63,6 +63,12 @@ func (w *execWorker) exec(ctx, tctx context.Context) {
|
|||||||
logrus.WithError(err).Error("wait exec container's task")
|
logrus.WithError(err).Error("wait exec container's task")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := task.Start(ctx); err != nil {
|
||||||
|
logrus.WithError(err).Error("exec container start failure")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
spec, err := c.Spec(ctx)
|
spec, err := c.Spec(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithError(err).Error("failed to get spec")
|
logrus.WithError(err).Error("failed to get spec")
|
||||||
|
Loading…
Reference in New Issue
Block a user