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

Add a shutdown hook to executor service in JerseySupport #2505

Merged
merged 2 commits into from
Nov 12, 2020

Conversation

spericas
Copy link
Member

@spericas spericas commented Nov 5, 2020

Add a shutdown hook to executor service in JerseySupport. This should prevent threads in this executor to attempt reads/writes after Netty's executor is also down.

Signed-off-by: Santiago Pericasgeertsen santiago.pericasgeertsen@oracle.com

…event threads in this executor to attempt reads/writes after Netty's executor is also down.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas added webserver jax-rs JAX-RS and Jersey related issues labels Nov 5, 2020
@spericas spericas added this to the 2.1.1 milestone Nov 5, 2020
@spericas spericas self-assigned this Nov 5, 2020
@spericas spericas changed the title Add a shutdown hook to executor service JerseySupport. This should pr… WIP: Add a shutdown hook to executor service JerseySupport Nov 5, 2020
@spericas spericas added this to Normal priority in Backlog Nov 5, 2020
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas
Copy link
Member Author

spericas commented Nov 5, 2020

This fix seems to help but does not completely eliminate the problem of stack traces in log by Netty. There always will be a window perhaps in which those exceptions can be reported. We should decide whether we want to keep this change or not.

@spericas spericas changed the title WIP: Add a shutdown hook to executor service JerseySupport Add a shutdown hook to executor service JerseySupport Nov 6, 2020
@spericas spericas changed the title Add a shutdown hook to executor service JerseySupport Add a shutdown hook to executor service in JerseySupport Nov 6, 2020
Copy link
Member

@tjquinno tjquinno left a comment

Choose a reason for hiding this comment

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

LGTM

@spericas spericas merged commit cb53c20 into helidon-io:master Nov 12, 2020
Backlog automation moved this from Normal priority to Closed Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jax-rs JAX-RS and Jersey related issues webserver
Projects
Backlog
  
Closed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants