Skip to content

CRIU closes syslog handle before checkpoint unless syslog:none specified - #15793

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

CRIU closes syslog handle before checkpoint unless syslog:none specified#15793
tajila merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:closesyslog

Conversation

@JasonFengJ9

Copy link
Copy Markdown
Member

CRIU closes the system logger handle before checkpoint unless -Xsyslog:none specified

Before the checkpoint, use queryLogOptions() to retrieve the system logger options, if it is not -Xsyslog:none, close the system logger handle via j9port_control(OMRPORT_CTLDATA_SYSLOG_CLOSE, 0);
After restore, re-open the system logger, and set options with saved string value;
Added a test to verify that -Xtrace:trigger=tpnid{j9criu.7-8,javadump} works.

closes #15776

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

@JasonFengJ9
JasonFengJ9 requested a review from tajila August 29, 2022 22:29
@JasonFengJ9 JasonFengJ9 added comp:vm criu Used to track CRIU snapshot related work labels Aug 29, 2022
Comment thread runtime/criusupport/criusupport.cpp Outdated
@tajila

tajila commented Aug 31, 2022

Copy link
Copy Markdown
Contributor

Jenkins test sanity win jdk8

@tajila

tajila commented Aug 31, 2022

Copy link
Copy Markdown
Contributor

Jenkins test sanity xlinuxcriu jdk17

@JasonFengJ9

Copy link
Copy Markdown
Member Author

Looking at the test failure

 [OUT] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
 [OUT] 	at org.openj9.criu.CRIUSimpleTest.main(CRIUSimpleTest.java:32)

Before the checkpoint, use queryLogOptions() to retrieve the system
logger options, if it is not -Xsyslog:none, close the system logger
handle via j9port_control(OMRPORT_CTLDATA_SYSLOG_CLOSE, 0);
After restore, re-open the system logger, and set options with saved
string value;
Added a test to verify that -Xtrace:trigger=tpnid{j9criu.7-8,javadump}
works.

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

Copy link
Copy Markdown
Member Author

Fixed criu_nonPortable.xml.

@tajila this is ready for another run.

@tajila

tajila commented Aug 31, 2022

Copy link
Copy Markdown
Contributor

Jenkins test sanity xlinuxcriu jdk17

@tajila
tajila merged commit ae51628 into eclipse-openj9:master Sep 1, 2022
@JasonFengJ9
JasonFengJ9 deleted the closesyslog branch September 1, 2022 13:12
Comment thread runtime/criusupport/criusupport.cpp
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.

Unable to generate a javacore without the process ending at checkpoint

3 participants