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

ClassNotFoundException can occur when using parallel deployments #51

Closed
edwardsmatt opened this issue Sep 24, 2018 · 0 comments · Fixed by #52
Closed

ClassNotFoundException can occur when using parallel deployments #51

edwardsmatt opened this issue Sep 24, 2018 · 0 comments · Fixed by #52
Labels
Milestone

Comments

@edwardsmatt
Copy link
Contributor

edwardsmatt commented Sep 24, 2018

Background:
• Tomcat Parallel Deployments are in use
• The session object contains a custom data type only available on the web-application class-path
• Requests are occurring whilst the application is being redeployed
• Hazelcast is configured to use non-sticky sessions and deferred write.

Description:
When using parallel deployments whilst an application is processing requests, a new deployment can trigger a class not found exception in the HazelcastSession deserializeMap method. I believe this is because the web-application classpath has begun to unload whilst the session manager runs in the tomcat common classloader.

Impact:
Once Tomcat has entered this state, the instance becomes unstable and will only respond with a 500 - InternalServerError until the tomcat instance is restarted.

More Details
General Sequence Diagram

An example to reproduce can be found here: https://github.com/edwardsmatt/hazelcast-cnfe-parallel-deployment-example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants