Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRIU invokes j9sysinfo_get_env() to avoid checkpoint failure #16283

Merged
merged 1 commit into from Nov 22, 2022

Conversation

JasonFengJ9
Copy link
Member

@JasonFengJ9 JasonFengJ9 commented Nov 7, 2022

CRIU invokes j9sysinfo_get_env() to avoid checkpoint failure

When SSSD is enabled, j9sysinfo_get_username/getpwuid can cause checkpoint failure, these methods will be skipped if a checkpoint can be taken, j9sysinfo_get_env is used instead;
Add sysinfoGetUserNameHelper to wrap j9sysinfo_get_username() and j9sysinfo_get_env() calls;
Add J9PORT_CTLDATA_INSTANTON_FLAGS to set CRIU status enabled & final restore via j9port_control accordingly.

FYI @hangshao0

Signed-off-by: Jason Feng fengj@ca.ibm.com

@JasonFengJ9 JasonFengJ9 marked this pull request as draft November 7, 2022 22:27
@JasonFengJ9 JasonFengJ9 added comp:vm criu Used to track CRIU snapshot related work labels Nov 7, 2022
@JasonFengJ9 JasonFengJ9 marked this pull request as ready for review November 9, 2022 22:58
runtime/port/sysvipc/j9shmem.c Outdated Show resolved Hide resolved
runtime/shared_common/shrinit.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@hangshao0 hangshao0 left a comment

Choose a reason for hiding this comment

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

LGTM.

When SSSD is enabled, j9sysinfo_get_username/getpwuid can cause
checkpoint failure, these methods will be skipped if a checkpoint can be
taken, j9sysinfo_get_env is used instead;
Add sysinfoGetUserNameHelper to wrap j9sysinfo_get_username() and
j9sysinfo_get_env() calls;
Add J9PORT_CTLDATA_CRIU_SUPPORT_FLAGS to set CRIU status enabled &
final restore via j9port_control accordingly;
Add Trc_PRT_j9shmem_getDir_tryHomeDirFailed_notFinalRestore.

Signed-off-by: Jason Feng <fengj@ca.ibm.com>
@tajila
Copy link
Contributor

tajila commented Nov 21, 2022

jenkins test sanity win jdk8

@tajila
Copy link
Contributor

tajila commented Nov 21, 2022

Jenkins test sanity xlinuxcriu jdk17

@tajila tajila merged commit 3fe5f29 into eclipse-openj9:master Nov 22, 2022
@JasonFengJ9 JasonFengJ9 deleted the sssd2 branch November 22, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:vm criu Used to track CRIU snapshot related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants