opencontainers / opencontainers/runc

Consistent GetStats behaviour for deleted cgroups

Open
#487 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.