Skip to content

Commit

Permalink
Merge pull request #1807 from jsturtevant/fix-pids-query
Browse files Browse the repository at this point in the history
When fetching the pid counts for the container the state can be invalid sometimes
  • Loading branch information
katiewasnothere authored Jun 15, 2023
2 parents c197eb5 + 2095093 commit d8cf194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/containerd-shim-runhcs-v1/task_hcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ func (ht *hcsTask) Pids(ctx context.Context) ([]runhcsopts.ProcessDetails, error
// Get the guest pids
props, err := ht.c.Properties(ctx, schema1.PropertyTypeProcessList)
if err != nil {
if isStatsNotFound(err) {
return nil, errors.Wrapf(errdefs.ErrNotFound, "failed to fetch pids: %s", err)
}
return nil, err
}

Expand Down

0 comments on commit d8cf194

Please sign in to comment.