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

Initialize JITServer SSL context post CRIU restore #17797

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

mpirvu
Copy link
Contributor

@mpirvu mpirvu commented Jul 14, 2023

When encryption is enabled for a JITServer client post CRIU restore, the client needs to update its SSL configuration with the newly provided certificate. This is done in ClientStream::static_init() function which needs to be called during processOptionsPostRestore().

Moreover, if SSL encryption was specified pre-checkpoint, the hook that gets executed, TR::CompilationInfo::prepareForCheckpoint(), will delete the existing SSL context and any existing certificate.

Issue: #17786

When encryption is enabled for a JITServer client post CRIU restore, the
client needs to update its SSL configuration with the newly provided certificate.
This is done in ClientStream::static_init() function which needs to be called
during processOptionsPostRestore().

Moreover, if SSL encryption was specified pre-checkpoint, the hook that gets
executed, `TR::CompilationInfo::prepareForCheckpoint()`, will delete the
existing SSL context and any existing certificate.

Issue: eclipse-openj9#17786

Signed-off-by: Marius Pirvu <[email protected]>
@mpirvu mpirvu added comp:jitserver Artifacts related to JIT-as-a-Service project criu Used to track CRIU snapshot related work labels Jul 14, 2023
@mpirvu
Copy link
Contributor Author

mpirvu commented Jul 14, 2023

I have verified that a JITServer connection is successfully made post restore when the SSL certificate is provided.

@mpirvu
Copy link
Contributor Author

mpirvu commented Jul 14, 2023

@dsouzai Could you please review/merge this PR? Thanks

@mpirvu
Copy link
Contributor Author

mpirvu commented Jul 14, 2023

jenkins test sanity plinuxjit,xlinuxjit,zlinuxjit jdk17

Copy link
Contributor

@dsouzai dsouzai left a comment

Choose a reason for hiding this comment

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

LGTM

@dsouzai dsouzai self-assigned this Jul 14, 2023
@mpirvu
Copy link
Contributor Author

mpirvu commented Jul 15, 2023

Tests have passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project criu Used to track CRIU snapshot related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants