[JBoss JIRA] (ISPN-12105) ThreadLeak mysql-cj-abandoned-connection-cleanup in server/tests
by Ryan Emerson (Jira)
Ryan Emerson created ISPN-12105:
-----------------------------------
Summary: ThreadLeak mysql-cj-abandoned-connection-cleanup in server/tests
Key: ISPN-12105
URL: https://issues.redhat.com/browse/ISPN-12105
Project: Infinispan
Issue Type: Bug
Components: Test Suite
Affects Versions: 11.0.1.Final
Reporter: Ryan Emerson
The server/tests that rely on the mysql-connector-java are causing a thread leak.
{code:xml}
<testsuite tests="1" time="0.0" name="" skipped="0" errors="0" failures="1">
<!-- Tests results -->
<testcase name="ThreadLeakChecker" classname="UNKNOWN" time="0.0">
<failure type="org.infinispan.commons.test.ThreadLeakChecker$LeakException" message="Leaked thread: mysql-cj-abandoned-connection-cleanup << testng-RestLoggingResource << UNKNOWN">
<![CDATA[ org.infinispan.commons.test.ThreadLeakChecker$LeakException: Leaked thread: mysql-cj-abandoned-connection-cleanup << testng-RestLoggingResource << UNKNOWN at java.base(a)11.0.7/java.lang.Object.wait(Native Method) at java.base@11.0.7/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155) at app//com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:85) at java.base@11.0.7/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base@11.0.7/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base@11.0.7/java.lang.Thread.run(Thread.java:834) Caused by: org.infinispan.commons.test.ThreadLeakChecker$LeakException: testng-RestLoggingResource << UNKNOWN at org.infinispan.commons.test.ThreadLeakChecker$ThreadInfoLocal.childValue(ThreadLeakChecker.java:109) at org.infinispan.commons.test.ThreadLeakChecker$ThreadInfoLocal.childValue(ThreadLeakChecker.java:106) at java.base/java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:411) at java.base/java.lang.ThreadLocal.createInheritedMap(ThreadLocal.java:276) at java.base/java.lang.Thread.<init>(Thread.java:450) at java.base/java.lang.Thread.<init>(Thread.java:709) at java.base/java.lang.Thread.<init>(Thread.java:582) at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.lambda$static$0(AbandonedConnectionCleanupThread.java:59) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:623) at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:912) at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1343) at java.base/java.util.concurrent.Executors$DelegatedExecutorService.execute(Executors.java:687) at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.<clinit>(AbandonedConnectionCleanupThread.java:75) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at com.mysql.cj.jdbc.NonRegisteringDriver.<clinit>(NonRegisteringDriver.java:97) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:779) at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:721) at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1394) at org.infinispan.commons.util.ServiceFinder.addServices(ServiceFinder.java:63) at org.infinispan.commons.util.ServiceFinder.load(ServiceFinder.java:44) at org.infinispan.server.Extensions.loadService(Extensions.java:80) at org.infinispan.server.Extensions.load(Extensions.java:44) at org.infinispan.server.Server.run(Server.java:318) at org.infinispan.server.test.core.EmbeddedInfinispanServerDriver.start(EmbeddedInfinispanServerDriver.java:64) at org.infinispan.server.test.core.AbstractInfinispanServerDriver.start(AbstractInfinispanServerDriver.java:114) at org.infinispan.server.test.junit4.InfinispanServerRule$1.evaluate(InfinispanServerRule.java:73) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:377) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:138) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:465) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:451) Caused by: org.infinispan.commons.test.ThreadLeakChecker$LeakException: UNKNOWN ]]>
</failure>
</testcase>
</testsuite>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 6 months