openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

CRIU skips j9sysinfo_get_username/getpwuid to avoid checkpoint failure

Open JasonFengJ9 opened this issue 3 years ago • 0 comments

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 [email protected]

JasonFengJ9 avatar Sep 21 '22 14:09 JasonFengJ9