You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Arpit Goyal (Jira)" <ji...@apache.org> on 2023/12/30 07:45:00 UTC
[jira] (KAFKA-16063) Fix leaked ApplicationShutdownHooks in EndToEndAuthorizationTests
[ https://issues.apache.org/jira/browse/KAFKA-16063 ]
Arpit Goyal deleted comment on KAFKA-16063:
-------------------------------------
was (Author: JIRAUSER301926):
[~divijvaidya] It seems intellij profiler is available in the ultimate edition and not the community edition.
> Fix leaked ApplicationShutdownHooks in EndToEndAuthorizationTests
> -----------------------------------------------------------------
>
> Key: KAFKA-16063
> URL: https://issues.apache.org/jira/browse/KAFKA-16063
> Project: Kafka
> Issue Type: Sub-task
> Reporter: Divij Vaidya
> Assignee: Arpit Goyal
> Priority: Major
> Attachments: Screenshot 2023-12-29 at 12.38.29.png
>
>
> All test extending `EndToEndAuthorizationTest` are leaking DefaultDirectoryService objects.
> This can be observed using the heap dump at [https://www.dropbox.com/scl/fi/4jaq8rowkmijaoj7ec1nm/GradleWorkerMain_10311_27_12_2023_13_37_08_Leak_Suspects.zip?rlkey=minkbvopb0c65m5wryqw234xb&dl=0] (unzip this and you will find a hprof which can be opened with your favourite heap analyzer)
> The stack trace looks like this:
> !Screenshot 2023-12-29 at 12.38.29.png!
>
> I suspect that the reason is because DefaultDirectoryService#startup() registers a shutdownhook which is somehow messed up by QuorumTestHarness#teardown().
> We need to investigate why this is leaking and fix it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)