Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16052 OOM in Kafka test suite
  3. KAFKA-16063

Fix leaked ApplicationShutdownHooks in EndToEndAuthorizationTests

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.8.0
    • None
    • None

    Description

      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:

       

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            goyarpit Arpit Goyal
            divijvaidya Divij Vaidya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment