Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10880

JCacheConfigurationTest leaks cache manager

XMLWordPrintable

      ThreadLeakCheckerorg.infinispan.commons.test.ThreadLeakChecker$LeakException: Leaked thread: expiration-thread--p446-t1 << testng-JCacheConfigurationTest << org.infinispan.jcache.JCacheConfigurationTest
      ...
      Caused by: org.infinispan.commons.test.ThreadLeakChecker$LeakException: testng-JCacheConfigurationTest << org.infinispan.jcache.JCacheConfigurationTest
      at org.infinispan.commons.test.ThreadLeakChecker$ThreadInfoLocal.childValue(ThreadLeakChecker.java:107)
      ...
      at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:713)
      at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:391)
      at org.infinispan.jcache.embedded.JCacheManager.<init>(JCacheManager.java:75)
      at org.infinispan.jcache.JCacheConfigurationTest.lambda$testJCacheManagerWithRealJarFileSchema$1(JCacheConfigurationTest.java:107)
      at org.infinispan.jcache.util.JCacheTestingUtil.withCachingProvider(JCacheTestingUtil.java:36)
      at org.infinispan.jcache.JCacheConfigurationTest.testJCacheManagerWithRealJarFileSchema(JCacheConfigurationTest.java:104)
      

      The leak is only reported some of the time because AbstractJCacheManager has a finalize() method and stops the underlying cache manager.

      The threads created by DefaultCacheManager ensure it's still referenced during finalization, allowing it to stop cleanly.

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: