opencontainers / opencontainers/runc
Consistent GetStats behaviour for deleted cgroups
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13.5k
- Forks
- 2.3k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 30
Description
Some subsystems return nil error e.g. blkio, some return the ErrNotExist (or equivalent) e.g. cpuacct, & some return a reformatted error e.g. hugetlb.
What do you think the consistent behaviour should be?
I would prefer to return the ErrNotExist or similar error, as this is easier to handle with library consumers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the GetStats behavior of the blkio, cpuacct, and hugetlb subsystems, focusing on how deleted cgroups produce nil, ErrNotExist, or reformatted errors. Determine and document the consistent error contract that library consumers should receive, then verify that each subsystem follows it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100