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

Fix leak of ExpirationReaper-1-AlterAcls threads in :core:test

    XMLWordPrintableJSON

Details

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

    Description

      We are leaking hundreds of ExpirationReaper-1-AlterAcls threads in one of the tests in :core:test

      "ExpirationReaper-1-AlterAcls" prio=0 tid=0x0 nid=0x0 waiting on condition
           java.lang.Thread.State: TIMED_WAITING
       on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@3688fc67
          at java.base@17.0.9/jdk.internal.misc.Unsafe.park(Native Method)
          at java.base@17.0.9/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252)
          at java.base@17.0.9/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1672)
          at java.base@17.0.9/java.util.concurrent.DelayQueue.poll(DelayQueue.java:265)
          at app//org.apache.kafka.server.util.timer.SystemTimer.advanceClock(SystemTimer.java:87)
          at app//kafka.server.DelayedOperationPurgatory.advanceClock(DelayedOperation.scala:418)
          at app//kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper.doWork(DelayedOperation.scala:444)
          at app//org.apache.kafka.server.util.ShutdownableThread.run(ShutdownableThread.java:131)
       

      The objective of this Jira is to identify the test and fix this leak

      Attachments

        Issue Links

          Activity

            People

              divijvaidya Divij Vaidya
              divijvaidya Divij Vaidya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: