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 try/catch arounds reset timeout so we dont blow up on shutdown #4880

Merged
merged 3 commits into from May 26, 2021
Merged

Add try/catch arounds reset timeout so we dont blow up on shutdown #4880

merged 3 commits into from May 26, 2021

Conversation

hamnis
Copy link
Contributor

@hamnis hamnis commented May 25, 2021

Can be enhanced by including: http4s/blaze#535

@hamnis hamnis requested a review from rossabaker May 25, 2021 11:32
try setAndCancel(exec.schedule(killSwitch, ec, timeout))
catch {
case TickWheelExecutor.AlreadyShutdownException =>
logger.warn(s"Resetting timeout after tickwheelexecutor is shutdown")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

drop log?

Copy link
Member

Choose a reason for hiding this comment

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

How frequent is the error still? It still indicates something is broken. It seems like a good warning to me.

Copy link
Member

@ChristopherDavenport ChristopherDavenport left a comment

Choose a reason for hiding this comment

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

Can always lower log level/remove if its too loud/noisy.

@rossabaker rossabaker merged commit 1316309 into http4s:series/0.21 May 26, 2021
@hamnis hamnis deleted the blaze-reset-timeout-on-shutdown branch May 26, 2021 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants