Skip to content

CRIU skips j9sysinfo_get_username/getpwuid to avoid checkpoint failure - #15932

Merged
tajila merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:sssd
Sep 25, 2022
Merged

CRIU skips j9sysinfo_get_username/getpwuid to avoid checkpoint failure#15932
tajila merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:sssd

Conversation

@JasonFengJ9

@JasonFengJ9 JasonFengJ9 commented Sep 21, 2022

Copy link
Copy Markdown
Member

CRIU skips j9sysinfo_get_username()/getpwuid() 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;
Added J9PortLibrary.isSafeSSSDMethod which is equivalent to !isCheckpointAllowed();
Removed obsoleted defines ARM_EMULATED, CHORUS & J9PWENT;
Refactoring variable initialization, code format around code affected.

Internal personal build
Verified manually OpenLiberty checkpoint at RHEL8 w/ SSSD enabled.

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

@JasonFengJ9
JasonFengJ9 requested a review from tajila September 21, 2022 14:49
@JasonFengJ9 JasonFengJ9 added comp:vm criu Used to track CRIU snapshot related work labels Sep 21, 2022
Comment thread runtime/jcl/common/system.c Outdated
Comment thread runtime/jcl/unix/syshelp.c Outdated
Comment thread runtime/port/sysvipc/j9sharedhelper.c Outdated
Comment thread runtime/oti/j9port_generated.h Outdated
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;
Added J9PortLibrary.finalRestore which is equivalent to
!isCheckpointAllowed();
Removed obsoleted defines ARM_EMULATED, CHORUS & J9PWENT;
Refactoring variable initialization, code format around code affected.


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

tajila commented Sep 23, 2022

Copy link
Copy Markdown
Contributor

Jenkins test sanity xlinuxcriu jdk17

@tajila

tajila commented Sep 23, 2022

Copy link
Copy Markdown
Contributor

Jenkins test sanity win jdk8

@tajila
tajila merged commit 8cf3092 into eclipse-openj9:master Sep 25, 2022
@JasonFengJ9
JasonFengJ9 deleted the sssd branch September 25, 2022 11:35
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.

2 participants