Skip to content

Conversation

gianm
Copy link
Contributor

@gianm gianm commented Aug 23, 2025

DruidMeta owns an executor service, which spawns a thread that retains a reference to it. This service must be shut down for the DruidMeta to be garbage-collectable, which is important when DruidAvaticaTestDriver is closed. Otherwise, any segments retained by the DruidMeta will stick around.

This fix includes a @LifecycleStop so the same shutdown happens when an actual server is shutting down. It seems like good hygiene.

DruidMeta owns an executor service, which spawns a thread that retains
a reference to it. This service must be shut down for the DruidMeta to
be garbage-collectable, which is important when DruidAvaticaTestDriver
is closed. Otherwise, any segments retained by the DruidMeta will stick
around.

This fix includes a `@LifecycleStop` so the same shutdown happens when
an actual server is shutting down. It seems like good hygiene.
@gianm gianm merged commit 7390d6a into apache:master Aug 25, 2025
70 checks passed
@gianm gianm deleted the druidmeta-close branch August 25, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants