Skip to content

Cleanup outputTaskFailureListeners on query complete#20023

Merged
sopel39 merged 1 commit intotrinodb:masterfrom
starburstdata:ks/cleanup_listeners
Dec 5, 2023
Merged

Cleanup outputTaskFailureListeners on query complete#20023
sopel39 merged 1 commit intotrinodb:masterfrom
starburstdata:ks/cleanup_listeners

Conversation

@sopel39
Copy link
Member

@sopel39 sopel39 commented Dec 5, 2023

outputTaskFailureListeners were referencing QueryScheduler which are retaining references to HttpRemoteTask instances and other query runtime objects. This was considered a memory leak.

Before:

Zrzut ekranu 2023-12-5 o 11 51 15
Zrzut ekranu 2023-12-5 o 12 04 43

After this PR references to HttpRemoteTask are gone

@sopel39
Copy link
Member Author

sopel39 commented Dec 5, 2023

Related to #20022

outputTaskFailureListeners were referencing QueryScheduler
which are retaining references to HttpRemoteTask instances
and other query runtime objects. This was considered a
memory leak.
@sopel39 sopel39 force-pushed the ks/cleanup_listeners branch from e5dec7d to 210c2b2 Compare December 5, 2023 12:03
@sopel39 sopel39 merged commit 2a9661e into trinodb:master Dec 5, 2023
@sopel39 sopel39 deleted the ks/cleanup_listeners branch December 5, 2023 13:35
@sopel39 sopel39 mentioned this pull request Dec 5, 2023
@github-actions github-actions bot added this to the 435 milestone Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants