Skip to content

Conversation

@danishprakash
Copy link
Contributor

@danishprakash danishprakash commented Jan 29, 2022

Upon running tests via make test, I encountered flaky failures, I'll look into those and see if they have something to do with my host because I noticed the same behavior on main too.

Addresses #3343

Restore(process *Process, criuOpts *CriuOpts) error

// If the Container state is RUNNING or CREATED, sets the Container state to PAUSING and pauses
// If the Container state is RUNNING or CREATED, sets the Container state to PAUSED and pauses
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although the actual state that Pause internally sets is FROZEN, I hope this should be okay as an externally exposed func doc? cc/ @kolyshkin

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's "frozen" in cgroup lingo, and "paused" in libcontainer lingo.

Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kolyshkin
Copy link
Contributor

Closes #3343

That issue also says to convert docs to golang style, so we can't close it just yet.

Surely this needs to be a separate PR.

So, replace Closes: with Addresses: or something.

@danishprakash
Copy link
Contributor Author

Yes, that can be a separate PR of its own. Updated.

@kolyshkin
Copy link
Contributor

@thaJeztah PTAL

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for contributing!

@thaJeztah thaJeztah merged commit e4e2a9d into opencontainers:main Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants