Skip to content

Make all timer threads daemonic in subscription handlers#1811

Merged
kilink merged 1 commit intomasterfrom
graphql-handler-timer-cleanup
Feb 7, 2024
Merged

Make all timer threads daemonic in subscription handlers#1811
kilink merged 1 commit intomasterfrom
graphql-handler-timer-cleanup

Conversation

@kilink
Copy link
Member

@kilink kilink commented Feb 5, 2024

Make sure all the Timer instances use daemonic threads so they don't block JVM shutdown, and add a PreDestroy method to the implementations to proactively clean up the session watchdog Timer. Additionally, add a descriptive name to each Timer instance.

Make sure all the Timer instances use daemonic threads so they don't block JVM shutdown,
and add a PreDestroy method to the implementations to proactively clean up the session
watchdog Timer. Additionally, add a descriptive name to each Timer instance.
@srinivasankavitha
Copy link
Contributor

Should we uncomment the subscription tests as well to see if this fixes the hanging tests?

@kilink
Copy link
Member Author

kilink commented Feb 7, 2024

Should we uncomment the subscription tests as well to see if this fixes the hanging tests?

Actually, the only disabled tests I can find are from graphql-dgs-subscriptions-sse, which I didn't touch in this PR.

@kilink kilink merged commit 9e2eaf0 into master Feb 7, 2024
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.

2 participants